@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-3.woff2") format("woff2");
  font-weight: 400 700;
  font-display: optional;
}

:root {
  --paper: #f8f6f1;
  --white: #fffdf9;
  --quiet: #ebe8df;
  --ink: #232b28;
  --muted: #4c5650;
  --line: #c8c9be;
  --line-strong: #9ca49b;
  --line-control: #79857c;
  --sand-light: #f5eadd;
  --sand: #f1e9de;
  --sand-line: #d8cabe;
  --forest: #223c36;
  --dark: #213932;
  --light: #e4ebe3;
  --accent: #8b3e2d;
  --gold: #f2d0a5;
  --display: "Instrument Serif", Georgia, serif;
  --body: "Source Sans 3", "Trebuchet MS", sans-serif;
  --shell: min(100% - 2 * clamp(1rem, 4.2vw, 4.5rem), 77.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1.1875rem/1.56 var(--body); }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
figcaption { font-size: .9375rem; margin-top: .45rem; color: var(--muted); }
h1, h2, h3, p { margin: 0; }
h1, h2 { font: 400 1em/.99 var(--display); letter-spacing: -.014em; text-wrap: balance; }
h1 { font-size: clamp(3.05rem, 6vw, 5.45rem); }
h2 { font-size: clamp(2.25rem, 4.3vw, 3.75rem); }
h3 { font-size: 1.42rem; line-height: 1.22; }
p { max-width: 68ch; }
a { color: inherit; text-decoration-thickness: .075em; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .14em; }
button, input, summary { font: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.on-dark :focus-visible, .feature :focus-visible { outline-color: var(--gold); }
::selection { color: var(--ink); background: var(--gold); }
[hidden] { display: none !important; }
.shell { width: var(--shell); margin-inline: auto; }
.skip { position: absolute; z-index: 20; top: .5rem; left: .5rem; background: var(--white); padding: .7rem 1rem; transform: translateY(-180%); }
.skip:focus { transform: translateY(0); }
main { overflow-wrap: anywhere; }
main:focus { outline: 0; }

.header { border-bottom: 1px solid var(--line); background: var(--paper); }
.header-row { display: flex; flex-wrap: wrap; gap: .35rem 1.5rem; justify-content: space-between; align-items: center; min-height: 5rem; }
.brand { display: inline-flex; gap: .65rem; align-items: center; min-height: 44px; text-decoration: none; }
.brand-symbol { display: block; flex: none; width: 2.05rem; height: 2.05rem; }
.brand-name { white-space: nowrap; font: 400 2.12rem/1 var(--display); letter-spacing: -.012em; }
.brand-name span { color: var(--accent); }
.on-dark .brand-name span { color: var(--gold); }
.nav, .desktop-nav { display: flex; flex-wrap: wrap; gap: clamp(.65rem, 2.65vw, 2.4rem); align-items: center; }
.nav { margin-inline-start: auto; }
.desktop-nav, .nav-list { list-style: none; margin: 0; padding: 0; }
.nav a, .nav summary { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: 1.07rem; font-weight: 600; text-decoration: none; }
.nav a:hover, .nav [aria-current="page"] { text-decoration: underline; }
.nav > .button { padding-inline: 1.1rem; }
.mobile-nav { display: none; }
.nav summary { gap: .55rem; padding-inline: .4rem; }
.nav summary::-webkit-details-marker { display: none; }
.nav summary::after {
  content: "";
  width: .45em;
  height: .45em;
  transform: translateY(-.12em) rotate(45deg);
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
}
.nav details[open] summary::after { transform: translateY(.08em) rotate(225deg); }
.nav-list {
  position: absolute;
  inset: 100% 0 auto auto;
  z-index: 5;
  width: min(14rem, 100%);
  padding: .3rem .6rem;
  border: 1px solid var(--line);
  background: var(--white);
}
.nav-list li + li { border-top: 1px solid var(--line); }
.nav-list a { width: 100%; padding: .45rem; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 3rem;
  padding: .67rem 1.15rem;
  text-align: center;
  border: 1px solid transparent;
  border-radius: 2px;
  background: var(--forest);
  color: var(--white);
  font: 700 1.06rem/1.32 var(--body);
  text-decoration: none;
}
.button:hover { background: #33564a; text-decoration: none; }
.button-outline { color: var(--ink); background: transparent; border-color: var(--line-control); }
.button-outline:hover { background: var(--quiet); }
.button-light { color: var(--dark); background: var(--gold); }
.button-light:hover { background: #f7e0c4; }
.text-action { display: inline-flex; min-height: 2.75rem; align-items: center; font-weight: 700; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(1.6rem, 4.5vw, 4.3rem);
  align-items: center;
  padding-block: clamp(2rem, 4.6vw, 4.7rem) clamp(1.7rem, 4vw, 3.9rem);
}
.hero-content { align-self: center; }
.hero h1 { text-wrap: wrap; font-size: clamp(3.7rem, 6.5vw, 6rem); }
.hero p { margin-top: 1.35rem; font-size: clamp(1.16rem, 1.65vw, 1.39rem); color: var(--muted); max-width: 40ch; line-height: 1.48; }
.hero-actions { display: flex; gap: .55rem 1.15rem; flex-wrap: wrap; align-items: center; margin-top: 1.5rem; }
.hero-media img { width: 100%; aspect-ratio: 1.37; object-fit: cover; object-position: 57% center; }
.hero-media figcaption, .guide-image figcaption, .guide-head-image figcaption { text-align: right; }
.hero-media figcaption a, .guide-image figcaption a, .guide-head-image figcaption a { line-height: 1.42; }

.section { padding-block: clamp(2.6rem, 5.15vw, 5.15rem); }
.section-head { margin-bottom: clamp(1.1rem, 2.5vw, 2rem); display: flex; justify-content: space-between; align-items: end; gap: .75rem 2rem; }
.orientation { display: grid; grid-template-columns: .8fr 1.2fr; align-items: start; gap: 1.35rem clamp(2rem, 6vw, 6.25rem); }
.hero + .orientation { border-top: 1px solid var(--line); }
.orientation > div > h2 + p { margin-top: .75rem; color: var(--muted); }
.index-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.index-list li { border-bottom: 1px solid var(--line); }
.index-list a { display: grid; gap: .1em .8em; grid-template-columns: 1fr auto; min-height: 3rem; padding: .9rem .15rem; align-items: start; text-decoration: none; }
.index-list a::after {
  content: "";
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  width: .55rem;
  height: .55rem;
  margin-inline: .3rem .5rem;
  transform: rotate(45deg);
  border: solid var(--accent);
  border-width: 1.5px 1.5px 0 0;
}
.index-list strong { font-size: clamp(1.2rem, 1.75vw, 1.45rem); line-height: 1.3; }
.index-list span { color: var(--muted); }
.index-list a:hover strong { text-decoration: underline; text-underline-offset: .16em; }
.index-list a:focus-visible { position: relative; z-index: 1; }

.feature { background: var(--dark); color: var(--white); }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem clamp(2rem, 5.3vw, 5rem); align-items: center; }
.feature h2 { font-size: clamp(2.8rem, 5vw, 4.5rem); }
.feature p { margin-top: .9rem; color: var(--light); }
.feature .button { margin-top: 1.3rem; }
.example-plan { padding: clamp(.9rem, 3vw, 1.7rem); border: 1px solid #778880; }
.example-plan figcaption { margin: 0 0 .9rem; color: var(--light); }
.plan-room { border: 2px solid var(--light); border-bottom: 0; height: clamp(4rem, 7vw, 6.75rem); display: flex; align-items: end; }
.plan-room span { width: 57.143%; background: var(--light); height: 4px; }
.plan-room::after { content: ""; flex: 1; border-bottom: 2px dashed var(--gold); }
.plan-example-labels { display: grid; grid-template-columns: 4fr 3fr; font-size: 1.06rem; gap: .5rem; margin-top: .45rem; }
.plan-example-labels strong { color: var(--gold); }

.reading-grid { display: grid; grid-template-columns: 1fr .92fr; gap: 1.4rem clamp(2rem, 6vw, 5.5rem); align-items: start; }
.guide-image img { width: 100%; aspect-ratio: 1.69; object-fit: cover; }
.story h3 { margin-top: .42rem; font: 400 clamp(2rem, 3.6vw, 3rem)/1.01 var(--display); }
.story p { margin-top: .5rem; color: var(--muted); }
.reading-list { border-top: 1px solid var(--line-strong); }
.reading-list article { border-bottom: 1px solid var(--line); padding-block: clamp(.9rem, 2.3vw, 1.55rem); }
.reading-list p { margin-top: .35rem; color: var(--muted); }
.reading-list h3 a { display: inline-flex; min-height: 2.25rem; align-items: center; }
.quiet, .olive { background: var(--quiet); }
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line); padding: .8rem 0; }
.faq summary { font-weight: 700; min-height: 2.75rem; padding: .45rem .2rem; }
.faq p { margin: .2rem .4rem .65rem; }

.page-head { background: var(--quiet); padding-bottom: clamp(2.05rem, 5vw, 4.1rem); }
.breadcrumbs { padding-top: .5rem; margin-bottom: clamp(1rem, 2.8vw, 1.65rem); display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; font-size: 1rem; color: var(--muted); }
.breadcrumbs a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.page-head h1 { max-width: 23ch; }
.page-head-tool { padding-bottom: clamp(1.5rem, 3vw, 2.75rem); }
.page-head-tool + .section { padding-top: clamp(1.35rem, 2.75vw, 2.5rem); }
.lead { margin-top: .9rem; max-width: 56ch; font-size: clamp(1.18rem, 2.1vw, 1.46rem); line-height: 1.45; color: var(--muted); }
.date, .source-line { color: var(--muted); font-size: 1rem; }
.date { margin-top: .75rem; }
.guide-head { display: grid; grid-template-columns: 1fr .73fr; gap: 1.4rem clamp(1.5rem, 4vw, 4rem); align-items: center; }
.guide-head-image img { width: 100%; aspect-ratio: 1.52; object-fit: cover; }
.prose { width: min(100%, 47rem); margin-inline: auto; }
.prose h2, .request-grid h2, .request-details h2 { font-size: clamp(1.98rem, 3.15vw, 2.85rem); }
.prose h2 { margin-top: 2.6rem; text-wrap: pretty; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6rem; }
.prose p, .prose ul, .prose ol, .prose dl { margin-top: .85rem; }
.prose a { overflow-wrap: anywhere; }
.prose ul, .prose ol { padding-inline-start: 1.45em; }
.prose li + li { margin-top: .5rem; }
.prose dl > div { border-bottom: 1px solid var(--line); padding: .8rem 0; }
.prose dt { font-weight: 700; }
.prose dd { margin: .2rem 0 0; }
.toc { margin-bottom: 1.4rem; padding-bottom: .9rem; border-bottom: 1px solid var(--line); }
.toc ul { margin-bottom: 0; }
.toc a, .related a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.note { margin-top: 1.4rem; padding: 1.25rem; background: var(--quiet); }
.note p:first-child { margin-top: 0; }
.related { margin: 2.5rem 0 0; padding-top: 1.3rem; border-top: 1px solid var(--line); }
.related h2 { font-size: clamp(2rem, 3vw, 2.65rem); }
.related ul { list-style: none; margin: .65rem 0 0; padding: 0; }
.related li + li { margin-top: 0; }
.related a { font-weight: 600; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.35rem clamp(2rem, 6vw, 5.6rem); align-items: start; }
.split h2, .split h3 { margin-bottom: .65rem; }
.split p + p { margin-top: .6rem; }
.steps { margin: .85rem 0 0; padding-left: 1.65rem; }
.steps li { padding: 0 0 .9rem .35rem; }
.steps li + li { padding-top: .8rem; border-top: 1px solid var(--line); }
.steps li::marker { font-weight: 700; color: var(--accent); }
.steps strong { display: block; }
.request-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: start; gap: 1.35rem clamp(1.4rem, 5vw, 4.4rem); }
.request-panel { border: 1px solid var(--line-strong); background: var(--white); padding: clamp(1.15rem, 3.5vw, 2.3rem); }
.request-panel > * + * { margin-top: .95rem; }
.request-aside { min-width: 0; }
.request-aside .steps { margin-block: 1.1rem .25rem; }
.request-details { margin-top: 2.5rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.form-label { color: var(--accent); font-weight: 700; }
.form-status:empty { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.request-frame { border: 0; display: block; width: 100%; margin-block: .75rem; }
.text-grid { display: grid; gap: .8rem; }

.directory { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem clamp(1.1rem, 4vw, 3.6rem); }
.directory h2 { font-size: clamp(2.08rem, 3vw, 2.7rem); margin-bottom: .9rem; }
.directory .index-list strong { font-size: 1.24rem; }

.calculator {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.45rem clamp(1.8rem, 5vw, 4rem);
  align-items: start;
  padding-bottom: clamp(2.5rem, 5vw, 3.85rem);
  border-bottom: 1px solid var(--line);
}
.calculator-form, .calculator-result { padding: clamp(1.25rem, 3.2vw, 2.25rem); }
.calculator-form { background: var(--white); border: 1px solid var(--line); }
.calculator-form > * + * { margin-top: 1.15rem; }
.calculator-form label, .calculator-form legend { display: block; font-weight: 700; }
.calculator-form label span { font-weight: 400; }
.calculator-form label + p { color: var(--muted); font-size: 1rem; }
.calculator-form input {
  display: block;
  width: min(100%, 8rem);
  min-height: 3rem;
  padding: .4rem .7rem;
  margin-top: .4rem;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line-control);
  border-radius: 2px;
}
.calculator-form input[aria-invalid="true"] { border: 2px solid var(--accent); }
.calculator-form fieldset { padding: .6rem 0 0; margin-inline: 0; border: 0; }
.calculator-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.calculator-error { color: var(--accent); font-weight: 600; }
.calculator-result { background: var(--quiet); }
.calculator-result h2 { font-size: clamp(2.05rem, 3.45vw, 3rem); }
.passage-row { margin-top: 1.05rem; }
.passage-row p { display: flex; gap: .5rem; justify-content: space-between; font-variant-numeric: tabular-nums; }
.passage-row output { font-weight: 700; color: var(--forest); }
.passage-track { height: 1rem; display: flex; margin-top: .4rem; border: 1px solid var(--line-control); background: var(--white); }
.passage-track span { display: block; background: var(--forest); }
.passage-comparison { margin-top: 1.15rem; font-weight: 700; }
.diagram-key { margin-top: .5rem; font-size: 1rem; color: var(--muted); }
.diagram-key span { display: inline-block; width: .7rem; height: .7rem; background: var(--forest); margin-right: .3rem; }
.calculator-edit { margin-top: .45rem; }
.calculator-notes { margin-top: clamp(2rem, 4vw, 3.4rem); }
.calculator + .calculator-notes + .related { margin-inline: auto; width: min(100%, 47rem); }

@media (forced-colors: active) {
  .passage-track span, .diagram-key span, .plan-room span {
    forced-color-adjust: none;
    background: CanvasText;
  }
}

.footer { color: var(--white); background: var(--dark); padding: clamp(1.4rem, 3.9vw, 3.2rem) 0; }
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .8rem 2rem; align-items: start; }
.footer p { color: var(--light); margin-top: .45rem; font-size: 1.03rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 1.3rem; list-style: none; padding: 0; margin: 0; }
.footer-links a { display: inline-flex; min-height: 2.75rem; align-items: center; font-size: 1.02rem; }

@media (max-width: 54em) {
  .orientation, .feature-grid, .reading-grid { gap: 1.4rem 1.9rem; }
  .directory { grid-template-columns: 1fr 1fr; }
  .guide-head { grid-template-columns: minmax(0, 1fr) minmax(0, .68fr); }
  .hero h1 { font-size: clamp(3.5rem, 8.2vw, 5.45rem); }
}

@media (max-width: 47em) {
  .header-row { position: relative; min-height: 4.2rem; gap: .25rem .65rem; padding-block: .3rem; }
  .nav { gap: .45rem; }
  .nav > .button { min-height: 2.75rem; padding-inline: .8rem; }
  .desktop-nav { display: none; }
  .mobile-nav { display: block; }
  .brand { gap: .4rem; }
  .brand-name { font-size: 1.9rem; }
  .brand-symbol { width: 1.7rem; height: 1.7rem; }
  .hero { padding-top: 1.85rem; gap: 1.35rem; }
  .hero h1 { font-size: clamp(3.5rem, 11vw, 5.15rem); }
  .hero p { margin-top: .85rem; }
  .hero-actions { align-items: start; flex-direction: column; margin-top: 1rem; }
  .hero-media img { aspect-ratio: 1.38; }
  .hero, .orientation, .feature-grid, .reading-grid, .split, .directory, .request-grid, .guide-head, .calculator { grid-template-columns: minmax(0, 1fr); }
  .section-head { align-items: start; flex-direction: column; gap: .25rem; }
  .request-grid { gap: 1.55rem; }
  .section-head .text-action { min-height: 2.75rem; }
  .page-head h1 { font-size: clamp(3.05rem, 9vw, 4.4rem); }
  .page-head-tool h1 { font-size: clamp(2.65rem, 9vw, 4.1rem); }
  .guide-head-image { max-width: 33rem; }
}

@media (max-width: 22em) {
  .brand-name { font-size: 1.7rem; }
  .nav summary { font-size: 1rem; }
}

@media print {
  .header, .footer, .breadcrumbs, .button, .skip, .request-frame, .hero-media, .calculator-edit { display: none !important; }
  body, .page-head, .request-panel, .calculator-form, .calculator-result { background: white; color: black; }
  .shell { width: 100%; }
  .section { padding-block: 1rem; }
}

/* Parcours devis et vérification d’une offre */
.conversion {
  background: var(--sand-light);
  border-bottom: 1px solid var(--sand-line);
}

.conversion-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  padding-block: clamp(1.7rem, 4.1vw, 3.8rem);
  align-items: start;
  gap: clamp(1.25rem, 5.6vw, 5.1rem);
}

.conversion .local-scope {
  margin-bottom: .65rem;
  color: var(--accent);
  font-size: clamp(.9rem, 1.6vw, 1.07rem);
  font-weight: 700;
  letter-spacing: .012em;
}

.conversion h1 { max-width: 12ch; font-size: clamp(3.45rem, 6.25vw, 5.8rem); text-wrap: pretty; }
.conversion-home h1 { max-width: 100%; font-size: clamp(3.2rem, 5.3vw, 5rem); }
.conversion-intro { max-width: 39ch; margin-top: .85rem; color: var(--muted); line-height: 1.45; }
.conversion-assurance { margin-top: .65rem; color: var(--forest); font-size: 1.04rem; font-weight: 700; }
.conversion-copy .guide-image { margin-top: 1.1rem; }
.conversion-copy .guide-image img { aspect-ratio: 1.72; object-fit: cover; object-position: 55% 54%; }
.conversion-panel { padding: clamp(.95rem, 2.6vw, 1.85rem); border-radius: .72rem; }
.conversion-panel h2 { font-size: clamp(2.2rem, 3.65vw, 3.35rem); text-wrap: pretty; }
.conversion-panel > * + * { margin-top: .52rem; }
.conversion-panel .conversion-note { color: var(--muted); font-size: 1.03rem; line-height: 1.4; }
.conversion-panel .form-direct { font-size: 1rem; }
.form-direct a, .conversion-note a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.conversion-panel .request-frame { margin-block: .4rem .2rem; }
.tally-embed.is-loading { position: relative; min-height: 27rem; }
.is-loading .request-frame { position: absolute; inset: 0 auto auto 0; margin: 0; visibility: hidden; }
.tally-embed .form-status { color: var(--muted); font-size: 1rem; }
.contact-details p { margin-top: .6rem; }
.contact-details .text-action { overflow-wrap: anywhere; }

.button-accent { background: var(--accent); color: var(--white); }
.button-accent:hover { background: #70402e; }
.page-head-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem 1.15rem; margin-top: 1.05rem; }

.home-final-cta { background: var(--accent); color: var(--white); }
.home-final-cta-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem; }
.home-final-cta h2 { text-wrap: pretty; }
.home-final-cta p { margin-top: .65rem; }
.mobile-quote { display: none; }

.trust-band {
  padding-block: 1.15rem;
  background: var(--sand);
  border-block: 1px solid var(--sand-line);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem 1.8rem;
  list-style: none;
  margin-block: 0;
  padding: 0;
}

.trust-grid strong, .trust-grid span { display: block; }
.trust-grid strong { font-size: 1.18rem; }
.trust-grid span { color: var(--muted); font-size: 1rem; }

.quote-intro {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  align-items: center;
  gap: 1.4rem clamp(1.8rem, 5vw, 4.15rem);
}

.quote-intro h2, .story-intro h2 { text-wrap: pretty; }
.quote-intro p { margin-top: .7rem; }
.quote-intro .button { margin-top: 1.1rem; }
.quote-intro > div > .text-action { display: flex; margin-top: .35rem; width: fit-content; }

.quote-graphic {
  margin: 0;
  padding: clamp(.9rem, 2.6vw, 1.65rem);
  border: 1px solid var(--sand-line);
  background: var(--sand);
}

.quote-graphic > figcaption { margin: 0 0 .75rem; color: var(--muted); font-weight: 600; }
.quote-graphic > p { margin: .7rem 0 0; font-size: 1rem; color: var(--muted); }

.quote-sheets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.5rem, 1.3vw, 1rem);
}

.quote-sheet { background: var(--white); border: 1px solid var(--line); padding: .85rem clamp(.55rem, 1.5vw, 1rem); }
.quote-sheet-review .quote-title { color: var(--accent); }
.quote-sheet .quote-title { font: 400 2rem/1.05 var(--display); margin: 0; }
.quote-sheet dl { margin: .4rem 0 0; font-size: 1rem; line-height: 1.35; }
.quote-sheet dl > div { padding-block: .55rem; border: 0; border-top: 1px solid var(--line); }
.quote-sheet dl > div:last-child { padding-bottom: 0; }
.quote-sheet dd { margin: .18rem 0 0; }
.prose > .quote-graphic { margin-block: 1.4rem 2rem; }

.replacement-summary { padding-bottom: clamp(2rem, 4.4vw, 4rem); }
.replacement-summary h2 { margin-bottom: .8rem; font-size: clamp(2rem, 3.65vw, 2.95rem); }
.replacement-graphic {
  display: grid;
  grid-template-columns: minmax(0, .67fr) minmax(0, 1.33fr);
  align-items: center;
  gap: .8rem clamp(1.1rem, 3vw, 2.3rem);
  padding: clamp(.85rem, 2.4vw, 1.6rem);
  border: 1px solid var(--sand-line);
  background: var(--white);
}
.replacement-plan {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  border: 1px solid var(--line-control);
  font: 700 1rem/1.25 var(--body);
  text-align: center;
}
.replacement-plan > div {
  display: grid;
  grid-template-rows: minmax(2.6rem, auto) auto;
  gap: .25rem;
  justify-items: center;
  align-items: center;
  padding: .65rem .4rem;
}
.replacement-plan > div::before {
  content: "";
  display: block;
  border: 1.5px solid currentColor;
}
.replacement-shower { color: var(--accent); background: var(--sand); }
.replacement-shower::before {
  width: 2.45rem;
  height: 2.45rem;
  background: radial-gradient(circle at 74% 26%, currentColor 0 1.5px, transparent 2px);
}
.replacement-room {
  border-inline-start: 1px dashed var(--line-control);
  color: var(--forest);
  background: var(--light);
}
.replacement-room::before { width: 2rem; height: 1.15rem; border-radius: .25rem .25rem .65rem .65rem; }
.replacement-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .6rem 1.15rem;
  margin: 0;
}
.replacement-details dt { color: var(--accent); font-weight: 700; }
.replacement-details > :last-child dt { color: var(--forest); }
.replacement-details dd { margin: .16rem 0 0; color: var(--muted); font-size: 1.04rem; line-height: 1.42; }
.replacement-graphic figcaption { grid-column: 1 / -1; margin-top: 0; font-size: 1rem; }

.story-intro { margin-bottom: clamp(1.1rem, 2.5vw, 1.9rem); }
.story-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); align-items: start; gap: 1.15rem clamp(1.8rem, 5vw, 4.4rem); }
.story-grid .guide-image img { aspect-ratio: 1.4; object-position: center 42%; }
.journey { padding-left: 1.5rem; margin: 1rem 0 0; }
.journey li { padding: 0 0 .8rem .45rem; }
.journey li + li { padding-top: .8rem; border-top: 1px solid var(--line); }
.journey li::marker { font-weight: 700; color: var(--accent); }
.journey strong, .journey span { display: block; }
.journey span { color: var(--muted); }
.partner-link { margin-inline-start: .65rem; }
.request-story .button { margin-top: .1rem; }
.passage-preview { color: var(--white); background: var(--forest); padding: clamp(.95rem, 2.9vw, 1.85rem); }
.passage-preview h3 { margin-bottom: .85rem; }
.passage-preview .plan-room { height: 3.1rem; }
.passage-preview a { margin-top: .65rem; }
.passage-preview :focus-visible { outline-color: var(--gold); }

.request-panel { border-color: var(--sand-line); }
.devis-releves .reading-grid { align-items: center; }

.devis-checklist {
  margin-top: 1.1rem;
  padding: clamp(.9rem, 2.7vw, 1.6rem);
  border: 1px solid var(--line);
  background: var(--white);
}

.devis-checklist fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.devis-checklist legend { padding: 0; font-size: 1.27rem; font-weight: 700; margin-bottom: .55rem; }
.check-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .7rem; align-items: start; min-height: 3rem; padding: .8rem .2rem; border-top: 1px solid var(--line); cursor: pointer; }
.check-row:hover { background: var(--paper); }
.check-row input { width: 1.5rem; height: 1.5rem; margin: .19rem 0 0; accent-color: var(--forest); }
.check-row small { display: block; color: var(--muted); font-size: 1rem; }
.checklist-actions { display: flex; flex-wrap: wrap; gap: .55rem; padding-top: .6rem; }
.checklist-result { font-weight: 700; color: var(--forest); }
.checklist-result:empty { margin: 0; }
.checklist-remaining h3 { margin-top: .75rem; font-size: 1.18rem; }
.checklist-remaining ul { margin-top: .35rem; }
.checklist-privacy { font-size: 1rem; color: var(--muted); }
.quote-request { margin-top: 1.4rem; padding-block: 1rem; border-block: 1px solid var(--line); }
.quote-request > p { margin-top: .5rem; }
.quote-request > .button { margin-top: .8rem; }

@media (max-width: 47em) {
  .conversion-grid, .quote-intro, .story-grid { grid-template-columns: minmax(0, 1fr); }
  .replacement-graphic { grid-template-columns: minmax(0, 1fr); }
  .conversion-grid { padding-block: 1rem 1.55rem; gap: .95rem; }
  .conversion h1 { max-width: 18ch; font-size: clamp(2.65rem, 9vw, 4.65rem); }
  .conversion-home h1 { max-width: 100%; font-size: clamp(2.25rem, 8.2vw, 4rem); }
  .conversion-intro { margin-top: .45rem; font-size: 1.06rem; }
  .conversion .local-scope { margin-bottom: .36rem; }
  .conversion-panel h2 { font-size: clamp(2rem, 7.6vw, 2.65rem); }
  .tally-embed.is-loading { min-height: 32rem; }
  .conversion-copy .guide-image { display: none; }
  .trust-grid { gap: .55rem; grid-template-columns: minmax(0, 1fr); }
  .trust-grid li + li { padding-top: .5rem; border-top: 1px solid var(--sand-line); }
  .story-grid > .guide-image { max-width: 33rem; }
  .request-story .journey { margin-top: .75rem; }
  .partner-link { margin-inline-start: 0; display: flex; width: fit-content; }
}

@media (max-width: 31em) {
  .replacement-details { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 23em) {
  html { scroll-padding-top: .65rem; }
  .conversion-grid { padding-top: .75rem; gap: .55rem; }
  .conversion h1 { max-width: 100%; font-size: 2.1rem; text-wrap: wrap; }
  .conversion-home h1 { font-size: 1.95rem; }
  .conversion-intro { margin-top: .35rem; font-size: 1rem; }
  .conversion-assurance { margin-top: .4rem; font-size: 1rem; }
  .conversion-panel { padding: .65rem .75rem .8rem; }
  .conversion-panel h2 { font-size: 1.72rem; }
  .conversion-panel .request-frame { margin-block-start: .2rem; }
  .tally-embed.is-loading { min-height: 34rem; }
  .quote-sheet dl { font-size: .94rem; }
  .quote-sheet .quote-title { font-size: 1.75rem; }
}

@media (max-width: 47em) and (min-height: 28rem) {
  html:has(.mobile-quote:not([hidden])) {
    scroll-padding-block-end: calc(4.5rem + env(safe-area-inset-bottom));
  }
  .mobile-quote {
    position: fixed;
    z-index: 6;
    inset: auto 1rem max(.65rem, env(safe-area-inset-bottom)) 1rem;
    display: flex;
    justify-content: center;
    pointer-events: none;
  }
  .mobile-quote .button {
    box-shadow: 0 .25rem .7rem rgb(35 43 40 / .22);
    pointer-events: auto;
  }
}

@media print {
  .home-final-cta, .mobile-quote { display: none; }
  .quote-graphic, .quote-sheet, .devis-checklist { background: white; }
  .quote-graphic, .replacement-graphic, .check-row { break-inside: avoid; }
  main:has(.devis-checklist) > .page-head,
  .prose:has(> .devis-checklist) > :not(#grille, .devis-checklist),
  .checklist-actions, .checklist-privacy { display: none; }
  .prose:has(> .devis-checklist) { font-size: 11pt; }
  .prose #grille { margin-top: 0; }
  .devis-checklist { padding: 0; border: 0; }
  .devis-checklist .check-row { min-height: 0; padding-block: .45rem; }
  .devis-checklist .check-row small { font-size: inherit; color: inherit; }
}
