:root {
  --navy: #0d2f68;
  --navy-2: #164783;
  --green: #4fb555;
  --green-dark: #378c3e;
  --ink: #17243a;
  --muted: #66758c;
  --line: #dce4ef;
  --soft: #f3f7fb;
  --white: #fff;
  --danger: #b42318;
  --warning: #a15c00;
  --shadow: 0 22px 55px rgba(13, 47, 104, .11);
  --shadow-sm: 0 8px 25px rgba(13, 47, 104, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f5f8fc;
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.top { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.top-in { position: relative; max-width: 1280px; height: 84px; margin: auto; padding: 10px 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand img { display: block; width: 180px; max-height: 62px; object-fit: contain; }
.top nav { display: flex; gap: 8px; }
.top nav a { padding: 11px 13px; border-radius: 9px; color: var(--navy); text-decoration: none; font-size: 14px; font-weight: 700; }
.top nav a:hover, .top nav a.active { color: var(--green-dark); background: #eef4fb; }
.menu { display: none; padding: 10px 13px; border: 0; border-radius: 9px; background: var(--navy); color: #fff; font-weight: 700; }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 92px;
  padding: 18px max(22px, calc((100vw - 1240px) / 2)) 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(circle at 84% 12%, rgba(79,181,85,.32), transparent 26%),
    linear-gradient(124deg, #0a285a 0%, #0d2f68 55%, #154b7d 100%);
}
.hero::after { display: none; }
.hero-copy { position: relative; z-index: 1; }
.eyebrow, .panel-head > span {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  color: #83da88;
}
.hero h1 {
  margin: 0;
  max-width: none;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.15;
  letter-spacing: -.025em;
}
.hero p { max-width: 680px; margin: 0; color: #dce7f6; font-size: 15px; line-height: 1.55; }
.hero-points { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 26px; font-size: 13px; font-weight: 700; color: #f2f7ff; }
.hero-points span { display: flex; align-items: center; gap: 8px; }
.hero-points i { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: var(--green); font-style: normal; font-size: 11px; }
.hero-card {
  position: relative;
  z-index: 1;
  width: 245px;
  flex: 0 0 auto;
  padding: 19px 21px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
}
.hero-card::before {
  content: "35";
  display: block;
  color: #fff;
  font-size: 38px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.05em;
}
.hero-card::after { content: "µm"; position: absolute; top: 23px; left: 70px; color: #83da88; font-weight: 800; }
.hero-card strong, .hero-card span { display: block; }
.hero-card strong { margin-top: 12px; font-size: 14px; }
.hero-card span { margin-top: 7px; color: #cfdcee; font-size: 12px; line-height: 1.55; }

.progress-wrap {
  position: relative;
  z-index: 3;
  width: min(850px, calc(100% - 40px));
  margin: -14px auto 26px;
  padding: 20px 48px 17px;
  border: 1px solid #e2e9f2;
  border-radius: 17px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.progress-steps {
  position: relative;
  z-index: 2;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.progress-steps li { display: flex; flex-direction: column; align-items: center; gap: 6px; color: #95a0af; font-size: 11px; font-weight: 700; }
.progress-steps b { display: grid; place-items: center; width: 28px; height: 28px; border: 3px solid #fff; border-radius: 50%; background: #e9eef4; color: #8b97a8; box-shadow: 0 0 0 1px #e2e8f0; font-size: 11px; }
.progress-steps li.active, .progress-steps li.done { color: var(--navy); }
.progress-steps li.active b { background: var(--navy); color: #fff; box-shadow: 0 0 0 4px rgba(13,47,104,.11); }
.progress-steps li.done b { background: var(--green); color: #fff; box-shadow: none; }
.progress-bar { position: absolute; z-index: 1; top: 34px; left: 13%; right: 13%; height: 3px; background: #e7edf4; }
.progress-bar span { display: block; width: 0; height: 100%; background: var(--green); transition: width .35s ease; }

.config-shell { width: min(1240px, calc(100% - 40px)); margin: 0 auto 55px; }
.workspace {
  display: grid;
  grid-template-columns: minmax(430px, .88fr) minmax(500px, 1.12fr);
  min-height: 650px;
  overflow: hidden;
  border: 1px solid #dfe7f1;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}
.config-panel {
  position: relative;
  padding: 42px 42px 32px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
}
.panel-head > span { color: var(--green-dark); }
.panel-head h2 { margin: 9px 0 9px; color: var(--navy); font-size: clamp(24px, 3vw, 32px); line-height: 1.16; letter-spacing: -.035em; }
.panel-head p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.step { display: none; margin-top: 32px; animation: stepIn .3s ease; }
.step.active { display: block; }
@keyframes stepIn { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }

.choice-grid { display: grid; gap: 14px; }
.roof-grid { grid-template-columns: 1fr 1fr; }
.choice-card {
  position: relative;
  min-height: 170px;
  padding: 25px 20px 21px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 20px;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  transition: .22s ease;
}
.choice-card:hover { transform: translateY(-2px); border-color: #a9bcd5; box-shadow: var(--shadow-sm); }
.choice-card.selected { border-color: var(--green); background: #f5fcf6; box-shadow: 0 0 0 3px rgba(79,181,85,.1); }
.choice-copy strong, .choice-copy small { display: block; }
.choice-copy strong { color: var(--navy); font-size: 17px; }
.choice-copy small { margin-top: 5px; color: var(--muted); font-size: 12px; }
.choice-check, .color-card i {
  position: absolute;
  top: 13px;
  right: 13px;
  display: none;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-style: normal;
}
.selected .choice-check, .color-card.selected i { display: grid; }
.roof-diagram { display: block; width: 132px; height: 78px; }
.roof-diagram svg { display: block; width: 100%; height: 100%; overflow: visible; }
.roof-diagram .wall { fill: #eef4fa; stroke: #b9cce0; stroke-width: 2; }
.roof-diagram .roof { fill: var(--navy); stroke: #092756; stroke-width: 2.5; stroke-linejoin: round; }
.roof-diagram .seam { fill: none; stroke: #80a2c7; stroke-width: 2; stroke-linecap: round; }
.choice-card.selected .roof-diagram .roof { fill: var(--green); stroke: #327e38; }
.choice-card.selected .roof-diagram .seam { stroke: #d9f3dc; }

.color-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.color-card {
  position: relative;
  min-height: 76px;
  padding: 12px 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  transition: .2s ease;
}
.color-card:hover { border-color: #9eafc2; transform: translateY(-1px); }
.color-card.selected { border-color: var(--green); background: #f5fcf6; box-shadow: 0 0 0 3px rgba(79,181,85,.1); }
.swatch { flex: 0 0 auto; width: 39px; height: 39px; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px #d5dde7, inset 0 0 8px rgba(255,255,255,.15); }
.ral-7016 { background: #293133; }
.ral-8004 { background: #8f4e35; }
.ral-8017 { background: #442f29; }
.ral-9005 { background: #0a0a0a; }
.ral-6020 { background: #37422f; }
.color-card strong, .color-card small { display: block; }
.color-card strong { color: var(--navy); font-size: 14px; }
.color-card small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.stock-badge { display: inline-block; margin-top: 6px; padding: 3px 7px; border-radius: 999px; font-size: 8px; font-style: normal; font-weight: 800; }
.stock-badge.in-stock { color: #24752d; background: #e8f8ea; }
.stock-badge.on-order { color: #9a5b00; background: #fff3d9; }
.availability-note { min-height: 41px; margin-top: 14px; padding: 11px 13px; border-radius: 10px; background: var(--soft); color: var(--muted); font-size: 11px; line-height: 1.45; }
.availability-note strong { color: var(--navy); }

.dimension-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dimension-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcfe;
}
.dimension-card.full { grid-column: 1 / -1; }
.dimension-card h3 { margin: 0 0 12px; color: var(--navy); font-size: 13px; }
.input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
label.field { display: flex; min-width: 0; flex-direction: column; color: var(--muted); font-size: 10px; font-weight: 700; }
.field-label { display: flex; min-height: 25px; align-items: flex-end; line-height: 1.25; }
.input-unit { position: relative; display: block; margin-top: 6px; }
.input-unit input {
  width: 100%;
  height: 44px;
  padding: 0 38px 0 12px;
  border: 1px solid #cfd9e6;
  border-radius: 10px;
  background: #fff;
  color: var(--navy);
  font-weight: 700;
  outline: none;
}
.input-unit input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(79,181,85,.12); }
.input-unit span { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); color: #8995a5; font-size: 11px; font-weight: 700; }
.measure-help { margin-top: 12px; padding: 11px 13px; display: flex; gap: 10px; border-radius: 11px; background: #eef5fb; color: #5d6f84; }
.measure-help > span { flex: 0 0 auto; display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 11px; font-weight: 800; }
.measure-help p { margin: 0; font-size: 10px; line-height: 1.55; }
.measure-help strong { color: var(--navy); }
.accessory-fieldset { margin: 17px 0 0; padding: 0; border: 0; }
.accessory-fieldset legend { margin-bottom: 10px; color: var(--navy); font-size: 12px; font-weight: 800; }
.accessory-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.accessory-option {
  position: relative;
  min-height: 52px;
  padding: 10px 10px 10px 39px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.accessory-option input { position: absolute; left: 12px; width: 17px; height: 17px; accent-color: var(--green); }
.accessory-option strong, .accessory-option small { display: block; }
.accessory-option strong { color: var(--navy); font-size: 11px; }
.accessory-option small { margin-top: 2px; color: var(--muted); font-size: 9px; }

.result-intro { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 13px; background: #f0faf2; }
.result-icon { display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; }
.result-intro strong, .result-intro small { display: block; }
.result-intro strong { color: #216c2a; font-size: 13px; }
.result-intro small { margin-top: 3px; color: #58845d; font-size: 10px; }
.result-table-wrap { margin-top: 13px; max-height: 230px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.result-table { width: 100%; border-collapse: collapse; font-size: 10px; }
.result-table th { position: sticky; top: 0; z-index: 1; padding: 10px 9px; background: #f3f6fa; color: #6a788c; text-align: left; font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }
.result-table td { padding: 10px 9px; border-top: 1px solid #edf1f5; color: #536177; vertical-align: middle; }
.result-table td:first-child { color: var(--navy); font-weight: 700; }
.result-table td:last-child, .result-table th:last-child { text-align: right; white-space: nowrap; }
.availability { display: inline-block; padding: 4px 6px; border-radius: 999px; font-size: 8px; font-weight: 800; white-space: nowrap; }
.availability.ok { color: #24752d; background: #e8f8ea; }
.availability.order { color: #9a5b00; background: #fff3d9; }
.totals { margin-top: 11px; padding: 12px 14px; border-radius: 12px; background: var(--soft); }
.totals > div { display: flex; justify-content: space-between; padding: 4px 0; color: var(--muted); font-size: 10px; }
.totals strong { color: var(--navy); }
.totals .grand-total { margin-top: 5px; padding-top: 9px; border-top: 1px solid #d8e2ee; color: var(--navy); font-size: 13px; font-weight: 800; }
.grand-total strong { color: var(--green-dark); font-size: 17px; }
.quote-warning { margin: 9px 0; color: var(--warning); font-size: 9px; line-height: 1.45; }

.panel-actions { margin-top: auto; padding-top: 24px; display: flex; gap: 10px; }
.primary-button, .secondary-button {
  min-height: 47px;
  border-radius: 11px;
  border: 0;
  font-weight: 800;
  font-size: 12px;
  transition: .2s ease;
}
.primary-button { margin-left: auto; padding: 0 20px; background: var(--green); color: #fff; box-shadow: 0 9px 20px rgba(79,181,85,.22); }
.primary-button span { margin-left: 12px; }
.primary-button:hover { transform: translateY(-1px); background: #45a64b; box-shadow: 0 12px 24px rgba(79,181,85,.3); }
.primary-button:disabled { cursor: not-allowed; opacity: .55; transform: none; box-shadow: none; }
.secondary-button { display: none; padding: 0 17px; border: 1px solid var(--line); background: #fff; color: var(--navy); }
.secondary-button.visible { display: block; }
.wide { width: 100%; margin: 0; }
.step[data-step="4"] .wide { margin-top: 5px; }
.panel-status { min-height: 16px; margin-top: 8px; color: var(--danger); font-size: 10px; }

.visual-panel { padding: 31px; display: flex; flex-direction: column; background: linear-gradient(155deg, #f1f6fb, #eaf1f8); }
.visual-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.visual-top span, .visual-top strong { display: block; }
.visual-top span { color: var(--green-dark); font-size: 9px; font-weight: 800; letter-spacing: .13em; }
.visual-top strong { margin-top: 5px; color: var(--navy); font-size: 16px; }
.visual-top .restart-button { min-height: 36px; padding: 8px 12px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid #cbd7e3; border-radius: 10px; background: #fff; color: var(--navy); box-shadow: 0 3px 10px rgba(13,47,104,.08); font-size: 9px; font-weight: 800; text-decoration: none; transition: .18s ease; }
.visual-top .restart-button:hover { border-color: #df8c8c; background: #fff5f5; color: #a62d2d; box-shadow: 0 5px 14px rgba(166,45,45,.12); transform: translateY(-1px); }
.visual-top .restart-button:focus-visible { outline: 3px solid rgba(79,181,85,.25); outline-offset: 2px; }
.restart-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s ease; }
.restart-button:hover svg { transform: rotate(-35deg); }
.house-frame {
  position: relative;
  aspect-ratio: 3 / 2;
  min-height: 0;
  margin-top: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  border: 6px solid #fff;
  border-radius: 19px;
  background: #dce8f2;
  box-shadow: 0 16px 38px rgba(13,47,104,.14);
}
.house-frame img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; transition: opacity .22s ease; }
.roof-overlay { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.roof-overlay .highlight { fill: none; stroke: #63de68; stroke-width: 14; stroke-linecap: round; stroke-linejoin: round; opacity: 0; filter: drop-shadow(0 0 8px rgba(30, 128, 41, .9)); transition: opacity .2s ease; }
.roof-overlay .highlight.active { opacity: .96; }
.roof-overlay .dimension-line { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; filter: drop-shadow(0 1px 4px rgba(0, 25, 56, .95)); }
.roof-overlay .dimension-guide { stroke: rgba(255,255,255,.82); stroke-width: 3; stroke-dasharray: 10 9; }
.roof-overlay .dimension-label { fill: rgba(13,47,104,.94); stroke: #fff; stroke-width: 3; }
.roof-overlay .dimension-text { fill: #fff; font-size: 31px; font-weight: 800; text-anchor: middle; dominant-baseline: middle; }
.roof-overlay .dimension-caption { fill: #fff; font-size: 20px; font-weight: 600; text-anchor: middle; dominant-baseline: middle; }
.image-loader { position: absolute; z-index: 3; inset: 0; display: none; place-items: center; background: rgba(240,246,251,.55); }
.image-loader.active { display: grid; }
.image-loader span { width: 34px; height: 34px; border: 3px solid #d8e4ed; border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.visual-summary { margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; border: 1px solid #d7e1ec; border-radius: 13px; background: #d7e1ec; }
.visual-summary > div { min-height: 72px; padding: 14px 12px; background: rgba(255,255,255,.82); }
.visual-summary span, .visual-summary strong { display: block; }
.visual-summary span { color: #7b8999; font-size: 8px; font-weight: 700; text-transform: uppercase; }
.visual-summary strong { margin-top: 7px; color: var(--navy); font-size: 10px; line-height: 1.4; }
.sync-status { margin-top: auto; padding-top: 18px; display: flex; align-items: center; gap: 8px; color: #6c7e91; font-size: 9px; }
.sync-status i { width: 8px; height: 8px; border-radius: 50%; background: #d49c31; box-shadow: 0 0 0 4px rgba(212,156,49,.12); }
.sync-status.ok i { background: var(--green); box-shadow: 0 0 0 4px rgba(79,181,85,.12); }
.sync-status.error i { background: #d85f54; box-shadow: 0 0 0 4px rgba(216,95,84,.12); }

.site-footer { min-height: 104px; padding: 0 22px; background: var(--navy); color: #fff; }
.footer-in { max-width: 1280px; min-height: 104px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.footer-brand { padding: 8px 13px; border-radius: 10px; background: #fff; }
.footer-brand img { display: block; width: 130px; max-height: 46px; object-fit: contain; }
.site-footer strong, .site-footer span { display: block; }
.site-footer strong { font-size: 14px; }
.site-footer span { margin-top: 5px; color: #bbcbe1; font-size: 9px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: #fff; font-size: 11px; font-weight: 700; text-decoration: none; }
.site-footer a:hover { color: #83da88; }

/* Header et footer repris à l’identique du devis en ligne JTLM */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(13,47,104,.06);
}
.topbar__inner {
  position: relative;
  max-width: 1280px;
  min-height: 82px;
  margin: 0 auto;
  padding: 10px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand--devis {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: var(--navy);
}
.brand--devis img {
  width: 150px;
  max-height: 58px;
  object-fit: contain;
  flex: none;
}
.brand--devis div {
  min-width: 0;
  padding-left: 15px;
  border-left: 1px solid var(--line);
}
.brand--devis strong {
  display: block;
  color: var(--navy);
  font-size: 16px;
  line-height: 1.25;
  font-weight: 800;
}
.brand--devis span {
  display: block;
  margin-top: 4px;
  color: #72869a;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.topbar__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
}
.top-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  white-space: nowrap;
}
.top-info b {
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
}
.top-info span,
.top-info a {
  color: #61768b;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.top-info a:hover { color: var(--green); }
.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--navy);
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  transition: .16s ease;
}
.ghost-link:hover {
  border-color: var(--green);
  background: #f7fff8;
  color: var(--green);
}
.topbar .menu {
  display: none;
  padding: 10px 13px;
  border: 0;
  border-radius: 9px;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
}
.topbar .mobile-nav { display: none; }
.jtlm-footer-brief {
  margin-top: auto;
  flex-shrink: 0;
  background: var(--navy);
  border-top: 4px solid var(--green);
  color: #fff;
}
.jtlm-footer-brief-inner {
  max-width: 1280px;
  min-height: 76px;
  margin: 0 auto;
  padding: 14px 22px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 26px;
}
.jtlm-footer-brief .footer-brand {
  padding: 0;
  border-radius: 0;
  background: transparent;
}
.jtlm-footer-brief .footer-brand strong {
  display: block;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}
.jtlm-footer-brief .footer-brand span {
  display: block;
  margin-top: 3px;
  color: #bfcfe1;
  font-size: 11px;
}
.footer-contact {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #bfcfe1;
  font-size: 11px;
  white-space: nowrap;
}
.footer-contact a {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.footer-contact a:hover { color: #83dc88; }
.footer-contact > span { color: var(--green); }
.footer-copy {
  color: #bfcfe1;
  font-size: 11px;
  white-space: nowrap;
}

dialog {
  width: min(680px, calc(100% - 28px));
  max-height: calc(100vh - 30px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(4,24,54,.28);
}
dialog::backdrop { background: rgba(5,24,52,.66); backdrop-filter: blur(3px); }
#quoteForm { position: relative; padding: 36px; }
.dialog-close { position: absolute; top: 17px; right: 17px; width: 33px; height: 33px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--navy); font-size: 20px; }
#quoteForm .eyebrow { color: var(--green-dark); }
#quoteForm h2 { margin: 9px 35px 8px 0; color: var(--navy); font-size: 25px; letter-spacing: -.03em; }
#quoteForm > p { margin: 0 0 22px; color: var(--muted); font-size: 12px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.form-grid label { color: var(--navy); font-size: 10px; font-weight: 800; }
.form-grid label.full { grid-column: 1 / -1; }
.website-field { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.form-grid input, .form-grid textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 13px;
  border: 1px solid #cfd9e6;
  border-radius: 10px;
  background: #fbfcfe;
  color: var(--ink);
  outline: 0;
  resize: vertical;
}
.form-grid input:focus, .form-grid textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(79,181,85,.12); }
.consent { margin: 15px 0; display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.consent input { width: 16px; height: 16px; accent-color: var(--green); }
.quote-status { min-height: 18px; margin-top: 10px; font-size: 11px; line-height: 1.5; }
.quote-status.error { color: var(--danger); }
.quote-status.ok { color: #25722d; }
.legal-note { display: block; margin-top: 9px; color: #8b97a7; font-size: 8px; line-height: 1.5; text-align: center; }

@media (max-width: 1020px) {
  .workspace { grid-template-columns: 1fr; }
  .config-panel { min-height: 620px; border-right: 0; border-bottom: 1px solid var(--line); }
  .visual-panel { order: -1; }
  .sync-status { margin-top: 18px; }
}
@media (max-width: 760px) {
  .top nav { display: none; position: absolute; top: 84px; left: 0; right: 0; padding: 12px; flex-direction: column; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm); }
  .top nav.open { display: flex; }
  .menu { display: block; }
  .brand img { width: 145px; }
  .hero { min-height: 125px; padding: 20px 18px 34px; }
  .hero h1 { font-size: 24px; }
  .hero p { font-size: 14px; }
  .hero-card { display: none; }
  .hero-points { gap: 10px 17px; font-size: 11px; }
  .progress-wrap { width: calc(100% - 28px); margin-top: -35px; padding: 16px 16px 13px; }
  .progress-bar { top: 30px; }
  .progress-steps span { font-size: 9px; }
  .config-shell { width: calc(100% - 20px); }
  .workspace { border-radius: 17px; }
  .visual-panel { padding: 18px; }
  .house-frame { margin-top: 14px; border-width: 4px; }
  .visual-summary { grid-template-columns: 1fr; }
  .visual-summary > div { min-height: 56px; }
  .config-panel { min-height: 650px; padding: 30px 20px 22px; }
  .roof-grid, .color-grid { grid-template-columns: 1fr; }
  .choice-card { min-height: 112px; flex-direction: row; align-items: center; justify-content: flex-start; padding: 18px; }
  .roof-diagram { flex: 0 0 auto; width: 108px; height: 64px; margin-right: 2px; }
  .dimension-fields, .accessory-grid { grid-template-columns: 1fr; }
  .dimension-card.full { grid-column: auto; }
  .result-table th:nth-child(3), .result-table td:nth-child(3) { display: none; }
  .footer-in { padding: 24px 0; align-items: flex-start; flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid label.full { grid-column: auto; }
  #quoteForm { padding: 28px 20px; }
}
@media (max-width: 420px) {
  .hero h1 { font-size: 22px; }
  .progress-wrap { width: calc(100% - 16px); }
  .progress-steps li span { display: none; }
  .progress-bar { left: 14%; right: 14%; }
  .visual-panel { padding: 12px; }
  .panel-actions { position: sticky; bottom: 0; margin: 0 -20px -22px; padding: 15px 20px; background: rgba(255,255,255,.96); border-top: 1px solid var(--line); }
}

@media (max-width: 900px) {
  .topbar__inner { min-height: 74px; padding: 8px 14px; }
  .brand--devis { gap: 10px; }
  .brand--devis img { width: 125px; max-height: 48px; }
  .brand--devis div { padding-left: 10px; }
  .brand--devis strong { font-size: 14px; }
  .brand--devis span { display: none; }
  .topbar__right .top-info,
  .topbar__right .ghost-link { display: none; }
  .topbar .menu { display: block; }
  .topbar .mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 10px 14px 14px;
    background: #fff;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(13,47,104,.12);
    flex-direction: column;
    gap: 5px;
  }
  .topbar .mobile-nav.open { display: flex; }
  .topbar .mobile-nav a {
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--navy);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
  }
  .topbar .mobile-nav a:hover { background: #eef4fb; color: var(--green); }
  .jtlm-footer-brief-inner { grid-template-columns: 1fr; gap: 8px; text-align: center; }
  .footer-contact { justify-content: center; flex-wrap: wrap; white-space: normal; }
}

@media (max-width: 520px) {
  .brand--devis img { width: 105px; }
  .brand--devis strong { font-size: 13px; }
  .footer-contact > span { display: none; }
  .footer-contact { flex-direction: column; gap: 4px; }
}

/* Configurateur bardage */
.bardage-workspace { grid-template-columns: minmax(440px, .88fr) minmax(560px, 1.12fr); }
.progress-wrap { width: min(940px, calc(100% - 40px)); }
.progress-steps { grid-template-columns: repeat(4, 1fr); }
.finish-section {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fbfcfe;
}
.finish-section-title { margin-bottom: 11px; }
.finish-section-title span, .finish-section-title strong { display: block; }
.finish-section-title span { color: var(--green-dark); font-size: 9px; font-weight: 800; letter-spacing: .13em; }
.finish-section-title strong { margin-top: 3px; color: var(--navy); font-size: 14px; }
.finish-separator { height: 27px; display: flex; align-items: center; gap: 10px; color: #8b98a9; font-size: 9px; font-weight: 800; }
.finish-separator::before, .finish-separator::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.bardage-colors--special { grid-template-columns: 1fr 1fr; }
.bardage-colors--standard { grid-template-columns: 1fr 1fr; }
.facade-count-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; }
.count-card {
  position: relative;
  min-height: 122px;
  padding: 18px 10px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--navy);
  transition: .18s ease;
}
.count-card:hover { transform: translateY(-2px); border-color: #9eafc2; box-shadow: var(--shadow-sm); }
.count-card.selected { border-color: var(--green); background: #f4fbf5; box-shadow: 0 0 0 3px rgba(79,181,85,.1); }
.count-card strong { font-size: 35px; line-height: 1; }
.count-card span { color: var(--muted); font-size: 11px; font-weight: 700; }
.count-card i,
.color-card > i {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  display: none;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}
.count-card.selected i, .color-card.selected > i { display: grid; }
.bardage-colors { grid-template-columns: 1fr 1fr; }
.finish-wood {
  background:
    repeating-linear-gradient(8deg, rgba(255,255,255,.12) 0 2px, transparent 2px 7px),
    linear-gradient(135deg, #c08a4b, #855229 55%, #b8773d);
}
.finish-walnut {
  background:
    repeating-linear-gradient(10deg, rgba(255,255,255,.09) 0 2px, transparent 2px 7px),
    linear-gradient(135deg, #6d4329, #332016 55%, #70462d);
}
.facade-tabs { margin-bottom: 13px; display: flex; gap: 7px; overflow-x: auto; scrollbar-width: thin; }
.facade-tab {
  flex: 0 0 auto;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}
.facade-tab.active { border-color: var(--navy); background: var(--navy); color: #fff; }
.facade-tab.complete::after { content: " ✓"; color: #82da87; }
.shape-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.shape-card {
  min-height: 105px;
  padding: 12px 8px;
  border: 1.5px solid var(--line);
  border-radius: 13px;
  background: #fff;
  color: var(--navy);
  font-size: 10px;
  font-weight: 800;
  transition: .18s ease;
}
.shape-card:hover { border-color: #9eafc2; }
.shape-card.selected { border-color: var(--green); background: #f4fbf5; box-shadow: 0 0 0 3px rgba(79,181,85,.1); }
.shape-card svg { width: 100%; height: 54px; display: block; margin-bottom: 5px; }
.shape-card svg path { fill: #eaf0f8; stroke: var(--navy); stroke-width: 3; stroke-linejoin: round; }
.facade-dimensions { margin-top: 13px; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: #fbfcfe; }
.facade-dimensions .input-row { grid-template-columns: repeat(2, 1fr); }
.facade-dimensions .input-row.three { grid-template-columns: repeat(3, 1fr); }
.facade-name { margin: 0 0 10px; color: var(--navy); font-size: 12px; }
.facade-accessory {
  margin-top: 13px;
  padding: 14px;
  border: 1px solid #d7e3ef;
  border-radius: 13px;
  background: #f1f6fb;
}
.facade-accessory-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.facade-accessory-head strong, .facade-accessory-head small { display: block; }
.facade-accessory-head strong { color: var(--navy); font-size: 11px; }
.facade-accessory-head small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.binary-choice, .compact-choice { display: flex; gap: 5px; }
.binary-choice button, .compact-choice button {
  min-width: 48px;
  padding: 7px 9px;
  border: 1px solid #c9d6e3;
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}
.binary-choice button.selected, .compact-choice button.selected {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}
.corner-side-options { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.corner-side-options.one-side { grid-template-columns: minmax(0, 1fr); }
.corner-selection { margin-top: 12px; padding: 10px; border: 1px solid #cbd9e7; border-radius: 11px; background: rgba(255,255,255,.7); }
.corner-selection > span { display: block; margin-bottom: 7px; color: var(--navy); font-size: 9px; font-weight: 800; }
.corner-selection-choice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.corner-selection-choice button { min-height: 34px; padding: 7px; border: 1px solid #c9d6e3; border-radius: 8px; background: #fff; color: var(--muted); font-size: 9px; font-weight: 800; }
.corner-selection-choice button.selected { border-color: var(--green-dark); background: var(--green-dark); color: #fff; box-shadow: 0 3px 8px rgba(53,135,59,.18); }
.corner-side-card { padding: 11px; border: 1px solid #cbd9e7; border-radius: 11px; background: #fff; }
.corner-side-heading { margin-bottom: 8px; display: flex; align-items: center; gap: 8px; color: var(--navy); }
.corner-side-heading strong { font-size: 10px; }
.corner-side-card .compact-choice { width: 100%; }
.corner-side-card .compact-choice button { flex: 1; }
.corner-side-card small { display: block; margin-top: 7px; color: var(--muted); font-size: 8px; line-height: 1.4; }
.corner-side-icon { position: relative; width: 26px; height: 22px; display: inline-block; border: 1px solid #b9c9d9; border-radius: 5px; background: #eef4f9; }
.corner-side-icon::after { content: ""; position: absolute; top: 3px; bottom: 3px; width: 4px; border-radius: 3px; background: var(--green); }
.corner-side-icon--left::after { left: 3px; }
.corner-side-icon--right::after { right: 3px; }
.corner-auto-note { margin-top: 9px; color: #66778d; font-size: 9px; line-height: 1.45; }
.editor-nav { margin-top: 12px; display: flex; justify-content: space-between; gap: 8px; }
.editor-nav button {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--navy);
  font-size: 10px;
  font-weight: 800;
}
.accessory-intro { padding: 15px; border-radius: 13px; background: #eef5fb; }
.accessory-intro strong { color: var(--navy); font-size: 13px; }
.accessory-intro p { margin: 6px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.corner-grid { margin-top: 13px; display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.corner-card {
  padding: 15px;
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}
.corner-card > .input-unit { grid-column: 1 / -1; margin-top: 0; }
.corner-card strong, .corner-card small { display: block; }
.corner-card strong { color: var(--navy); font-size: 11px; }
.corner-card small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.corner-icon { width: 34px; height: 34px; display: block; position: relative; border-radius: 8px; background: #eef3f9; }
.corner-icon::before, .corner-icon::after { content: ""; position: absolute; background: var(--green); }
.outer-corner::before { left: 9px; top: 7px; width: 5px; height: 20px; }
.outer-corner::after { left: 9px; top: 7px; width: 18px; height: 5px; }
.inner-corner::before { right: 9px; top: 7px; width: 5px; height: 20px; }
.inner-corner::after { right: 9px; top: 7px; width: 18px; height: 5px; }
.plan-stage {
  position: relative;
  min-height: 390px;
  margin-top: 18px;
  overflow: hidden;
  display: block;
  border: 6px solid #fff;
  border-radius: 19px;
  background: #f8fbfe;
  box-shadow: 0 16px 38px rgba(13,47,104,.14);
}
.plan-stage:not(.has-plans) { display: grid; place-items: center; }
.all-facades-plan {
  width: 100%;
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.all-facades-plan .facade-plan {
  padding: 16px;
  border: 1px solid #d8e2ed;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(13,47,104,.07);
}
.empty-plan { max-width: 300px; padding: 30px; text-align: center; }
.empty-plan svg { width: 190px; max-width: 100%; }
.empty-plan svg path { fill: #e6edf5; stroke: #9babc0; stroke-width: 3; stroke-linejoin: round; }
.empty-plan strong, .empty-plan span { display: block; }
.empty-plan strong { margin-top: 10px; color: var(--navy); font-size: 13px; }
.empty-plan span { margin-top: 7px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.facade-plan { width: 100%; padding: 12px; }
.facade-plan svg { width: 100%; height: auto; min-height: 360px; max-height: 520px; display: block; }
.facade-plan .outline { fill: none; stroke: #101820; stroke-width: 2.6; }
.facade-plan .sheet { stroke: #1d3347; stroke-width: 1.15; }
.facade-plan .sheet-overlap { fill: rgba(78,135,177,.12); stroke: #356786; stroke-width: 1; stroke-dasharray: 4 2; }
.facade-plan .profile-line { fill: none; stroke: #607d91; stroke-width: .65; }
.facade-plan .joint-line { fill: none; stroke: #1d3347; stroke-width: 1.7; stroke-dasharray: 5 3; }
.facade-plan .dimension-extension { fill: none; stroke: #526675; stroke-width: .8; }
.facade-plan .dimension-line-cad { fill: none; stroke: #101820; stroke-width: .9; }
.facade-plan .cut { fill: rgba(255,255,255,.74); }
.facade-plan .measure { fill: #65758b; font-size: 12px; font-weight: 700; text-anchor: middle; }
.facade-plan .sheet-label { fill: #07131d; font-size: 9px; font-weight: 800; text-anchor: middle; dominant-baseline: middle; paint-order: stroke; stroke: #fff; stroke-width: 2.8px; }
.facade-plan .plan-title { fill: #0d2f68; font-size: 15px; font-weight: 800; }
.facade-plan .plan-note { fill: #65758b; font-size: 10px; font-weight: 600; }
.result-actions { margin-top: 12px; display: grid; grid-template-columns: 1fr 1.35fr; gap: 9px; }
.result-actions .primary-button { width: 100%; margin: 0; }
.secondary-action {
  min-height: 47px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
}
#printArea { display: none; }

@media (max-width: 1120px) {
  .bardage-workspace { grid-template-columns: 1fr; }
  .bardage-workspace .visual-panel { order: -1; }
  .plan-stage { min-height: 360px; }
}
@media (max-width: 760px) {
  .facade-count-grid { grid-template-columns: 1fr 1fr; }
  .count-card { min-height: 95px; }
  .bardage-colors, .bardage-colors--special, .bardage-colors--standard { grid-template-columns: 1fr; }
  .shape-grid { grid-template-columns: 1fr 1fr 1fr; }
  .corner-grid { grid-template-columns: 1fr; }
  .facade-dimensions .input-row.three { grid-template-columns: 1fr; }
  .plan-stage { min-height: 300px; }
  .all-facades-plan { grid-template-columns: 1fr; }
  .facade-accessory-head { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 480px) {
  .shape-grid { grid-template-columns: 1fr; }
  .shape-card { min-height: 86px; display: flex; align-items: center; gap: 10px; text-align: left; }
  .shape-card svg { width: 100px; margin: 0; }
  .facade-dimensions .input-row { grid-template-columns: 1fr; }
  .result-actions { grid-template-columns: 1fr; }
}

@media print {
  body > *:not(#printArea) { display: none !important; }
  #printArea {
    display: block !important;
    color: #17243a;
    font-family: Inter, Arial, sans-serif;
  }
  #printArea .print-head { display: flex; justify-content: space-between; padding-bottom: 14px; border-bottom: 3px solid #0d2f68; }
  #printArea h1 { margin: 0; color: #0d2f68; font-size: 23px; }
  #printArea .print-meta { color: #66758c; font-size: 11px; text-align: right; }
  #printArea .print-plan { margin-top: 20px; break-inside: avoid; page-break-inside: avoid; }
  #printArea .print-plan h2 { color: #0d2f68; font-size: 16px; }
  #printArea .print-plan {
    margin-top: 18px;
    break-inside: avoid;
    page-break-inside: avoid;
    page-break-after: always;
  }
  #printArea .print-plan:last-of-type { page-break-after: auto; }
  #printArea .print-plan svg { width: 100%; height: auto; max-height: 620px; background: #fff !important; }
  #printArea .facade-plan { padding: 0; border: 0; background: #fff !important; box-shadow: none; }
  #printArea .sheet { fill: #fff !important; stroke: #000 !important; }
  #printArea .outline,
  #printArea .profile-line,
  #printArea .joint-line,
  #printArea .dimension-extension,
  #printArea .dimension-line-cad { fill: none !important; stroke: #000 !important; }
  #printArea .sheet-overlap { fill: transparent !important; stroke: #000 !important; }
  #printArea svg text { fill: #000 !important; stroke: none !important; }
  #printArea table { width: 100%; margin-top: 18px; border-collapse: collapse; font-size: 11px; }
  #printArea th, #printArea td { padding: 8px; border: 1px solid #dce4ef; text-align: left; }
  #printArea th { background: #eef3f9; color: #0d2f68; }
}

/* Pose et plan général à l'échelle */
.orientation-block {
  margin-bottom: 15px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid #d7e3ef;
  border-radius: 13px;
  background: #f1f6fb;
}
.orientation-copy strong, .orientation-copy small { display: block; }
.orientation-copy strong { color: var(--navy); font-size: 12px; }
.orientation-copy small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.orientation-choice { display: flex; gap: 7px; }
.orientation-choice button {
  min-width: 92px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #c9d6e3;
  border-radius: 9px;
  background: #fff;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}
.orientation-choice button.selected { border-color: var(--navy); background: var(--navy); color: #fff; }
.orientation-choice svg { width: 30px; height: 24px; }
.orientation-choice svg path { fill: none; stroke: currentColor; stroke-width: 2; }
.plan-toolbar { margin: 14px 0 -7px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plan-toolbar[hidden], .plan-help[hidden] { display: none !important; }
.plan-toolbar__group { display: flex; align-items: center; overflow: hidden; border: 1px solid #cbd8e5; border-radius: 9px; background: #fff; }
.plan-toolbar button { min-height: 34px; padding: 0 11px; border: 0; background: #fff; color: var(--navy); font-size: 11px; font-weight: 800; }
.plan-toolbar button:hover { background: #edf4fa; }
.plan-toolbar__group button { width: 36px; padding: 0; font-size: 18px; }
.plan-toolbar__group span { min-width: 62px; color: #66778d; font-size: 9px; font-weight: 800; text-align: center; }
.plan-help { margin-top: 7px; color: #77879a; font-size: 8px; text-align: center; }
.plan-stage.has-plans {
  height: 560px;
  min-height: 560px;
  cursor: grab;
  touch-action: none;
  background-color: #f9fbfd;
  background-image: linear-gradient(#e9eef3 1px, transparent 1px), linear-gradient(90deg, #e9eef3 1px, transparent 1px);
  background-size: 20px 20px;
}
.plan-stage.is-dragging { cursor: grabbing; }
.combined-plan-svg { width: 100%; height: 100%; display: block; background: rgba(255,255,255,.9); user-select: none; }
.combined-plan-svg .sheet { fill: #fff; stroke: #1d3347; stroke-width: 1.15; vector-effect: non-scaling-stroke; }
.combined-plan-svg .outline { fill: none; stroke: #101820; stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.combined-plan-svg .corner-highlight { fill: none; stroke: var(--green); stroke-width: 6; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.combined-plan-svg .overlap-band { fill: #f5a623; fill-opacity: .42; stroke: none; }
.combined-plan-svg .overlap-band--22 { fill: #f28c18; fill-opacity: .58; }
.combined-plan-svg .joint-line { fill: none; stroke: #9a5b00; stroke-width: 1.8; stroke-dasharray: 5 3; vector-effect: non-scaling-stroke; }
.combined-plan-svg .dimension-extension { fill: none; stroke: #526675; stroke-width: .8; vector-effect: non-scaling-stroke; }
.combined-plan-svg .dimension-line-cad { fill: none; stroke: #101820; stroke-width: .9; vector-effect: non-scaling-stroke; }
.combined-plan-svg .measure { fill: #65758b; font-size: 12px; font-weight: 700; text-anchor: middle; }
.combined-plan-svg .sheet-label { fill: #07131d; font-size: 11px; font-weight: 800; text-anchor: middle; dominant-baseline: middle; paint-order: stroke; stroke: #fff; stroke-width: 3px; }
.combined-plan-svg .plan-title { fill: #0d2f68; font-size: 15px; font-weight: 800; }
.combined-plan-svg .plan-note { fill: #65758b; font-size: 10px; font-weight: 600; }
.combined-plan-svg .plan-legend { fill: #65758b; font-size: 10px; font-weight: 700; }
.combined-plan-svg .corner-plan-note { fill: #466078; font-size: 9px; font-weight: 700; }
.visual-summary { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 760px) {
  .orientation-block { align-items: flex-start; flex-direction: column; }
  .orientation-choice { width: 100%; }
  .orientation-choice button { flex: 1; justify-content: center; }
  .plan-stage.has-plans { height: 420px; min-height: 420px; }
  .visual-summary { grid-template-columns: 1fr 1fr; }
  .corner-side-options { grid-template-columns: 1fr; }
}

@media print {
  @page { size: A4 landscape; margin: 10mm; }
  #printArea .print-plan { margin-top: 12px; page-break-after: auto; }
  #printArea .print-plan .facade-plan { width: 100%; height: 150mm; padding: 0; }
  #printArea .print-plan .combined-plan-svg { width: 100%; height: 100%; min-height: 0; max-height: none; background: #fff !important; }
  #printArea .combined-plan-svg .sheet { fill: #fff !important; stroke: #000 !important; }
  #printArea .combined-plan-svg .outline,
  #printArea .combined-plan-svg .joint-line,
  #printArea .combined-plan-svg .dimension-extension,
  #printArea .combined-plan-svg .dimension-line-cad { fill: none !important; stroke: #000 !important; }
  #printArea .combined-plan-svg text { fill: #000 !important; }
  #printArea .combined-plan-svg .overlap-band { fill: #d9d9d9 !important; fill-opacity: .9 !important; }
  #printArea .combined-plan-svg .corner-highlight { stroke: #52ad58 !important; }
}

#printPlan {
  display: none !important;
}

.result-actions {
  grid-template-columns: 1fr !important;
}

#openQuote {
  width: 100% !important;
}
