/* Morel & Fils — Rénovation (site d'exemple Devlume). Direction : éditoriale, papier os, anthracite, terracotta. */

@font-face {
  font-family: "Playfair Display";
  src: url("../../assets/fonts/PlayfairDisplay-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("../../assets/fonts/PlayfairDisplay-italic.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../../assets/fonts/Inter-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bone: #f4efe7;
  --bone-2: #ebe3d6;
  --paper: #fbf8f2;
  --ink: #222;
  --ink-soft: #45413d;
  --muted: #6b655e;
  --rule: rgba(34, 34, 34, 0.18);
  --terra: #b5532c;
  --terra-ink: #9a4322;
  --terra-light: #e08a64;
  --field: #8a8178;
  --error: #a3261c;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --gutter: clamp(20px, 4vw, 56px);
  --header-h: 76px;
  --infobar-h: 38px;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; }
h1 em, h2 em { font-style: italic; color: var(--terra); font-weight: 400; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--terra-ink); outline-offset: 3px; }
main:focus, section:focus { outline: none; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding-inline: var(--gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: 12px; top: -60px; z-index: 2000; background: var(--ink); color: var(--bone); padding: 10px 16px; text-decoration: none; }
.skip:focus { top: calc(var(--infobar-h) + 8px); }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.small { font-size: 14px; }

/* Boutons et liens */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border: 1px solid var(--ink); background: var(--ink); color: var(--bone);
  font: 600 15px/1.2 var(--sans); letter-spacing: 0.01em; text-decoration: none; cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { background: var(--terra-ink); border-color: var(--terra-ink); }
.btn-small { padding: 10px 18px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.link-arrow {
  display: inline-block; text-align: left; padding: 0; border: 0; background: none; cursor: pointer;
  font: 600 15px/1.4 var(--sans); color: var(--ink); text-decoration: underline; text-decoration-color: var(--terra);
  text-underline-offset: 6px; text-decoration-thickness: 1px;
}
.link-arrow::after { content: "→"; margin-left: 10px; text-decoration: none; display: inline-block; transition: transform 0.2s; }
.link-arrow:hover { color: var(--terra-ink); }
.link-arrow:hover::after { transform: translateX(4px); }
.link-arrow-light { color: var(--bone); text-decoration-color: var(--terra-light); }
.link-arrow-light:hover { color: #fff; }
.text-btn { border: 0; background: none; padding: 4px 0; cursor: pointer; font-weight: 600; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; color: var(--terra-ink); }

/* Barre d'infos */
.infobar { height: var(--infobar-h); overflow: hidden; border-bottom: 1px solid var(--rule); font-size: 13px; color: var(--ink-soft); }
.infobar-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; height: 100%; }
.infobar p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.infobar p:last-child { flex-shrink: 0; }
.infobar a { font-weight: 600; text-decoration: none; color: var(--ink); }
.infobar a:hover { color: var(--terra-ink); }
.infobar .sep { color: var(--terra); margin: 0 6px; }

/* En-tête */
/* La barre d'infos fait partie de l'en-tête ; seul le bandeau de navigation reste visible au défilement. */
.site-header { position: sticky; top: calc(-1 * var(--infobar-h)); z-index: 50; background: var(--bone); border-bottom: 1px solid var(--ink); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.logo { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; }
.logo-name { font: 600 28px/1 var(--serif); letter-spacing: -0.01em; }
.logo-name em { font-style: italic; font-weight: 400; color: var(--terra); padding: 0 1px; }
.logo-sub { margin-top: 6px; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav ul a { font-size: 14.5px; font-weight: 500; text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav ul a:hover { border-bottom-color: var(--terra); }
.nav-toggle { display: none; align-items: center; gap: 10px; border: 1px solid var(--ink); background: none; padding: 9px 14px; cursor: pointer; font-weight: 600; font-size: 14px; }
.nav-toggle-bars { position: relative; width: 18px; height: 10px; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { border-color: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before,
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { content: ""; position: absolute; left: 0; right: 0; top: 3px; border-top: 1.5px solid currentColor; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: rotate(-45deg); }

/* Héros */
.hero { padding-top: clamp(28px, 4vw, 56px); }
.hero-kicker {
  display: flex; justify-content: space-between; gap: 12px; margin: 0;
  padding: 11px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule);
  font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft);
}
.hero-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; align-items: end; margin: clamp(28px, 5vw, 64px) 0 clamp(28px, 4vw, 48px); }
.hero h1 { grid-column: 1 / 9; font-weight: 500; font-size: clamp(2.7rem, 7.2vw, 6.6rem); line-height: 0.98; letter-spacing: -0.025em; }
.hero-side { grid-column: 9 / 13; padding-bottom: 8px; }
.lead { font-size: 18.5px; line-height: 1.6; color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin: 26px 0 0; }
.hero-figure { margin: 0; }
.hero-figure img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; object-position: 50% 45%; }
figcaption { font-size: 13px; color: var(--muted); }
.hero-figure figcaption { padding: 10px 0; border-bottom: 1px solid var(--rule); }
.fig { font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-size: 11.5px; color: var(--terra-ink); margin-right: 10px; }
.hero-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-bottom: 1px solid var(--ink); }
.hero-facts div { padding: 20px 24px 22px; border-left: 1px solid var(--rule); }
.hero-facts div:first-child { border-left: 0; padding-left: 0; }
.hero-facts dt { font-size: 11.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.hero-facts dd { margin: 6px 0 0; font: 400 21px/1.3 var(--serif); font-variant-numeric: lining-nums; }

/* Sections */
.section { padding-block: clamp(72px, 9vw, 128px); }
.section-alt { background: var(--bone-2); }
.section-ink { background: var(--ink); color: var(--bone); }
.section-ink h2 em { color: var(--terra-light); }
.sec-head { max-width: 820px; margin-bottom: clamp(36px, 5vw, 60px); }
.sec-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; max-width: none; flex-wrap: wrap; }
.sec-num { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--terra-ink); }
.sec-num span { display: inline-flex; align-items: center; gap: 14px; color: var(--ink-soft); font-weight: 600; }
.sec-num span::before { content: ""; width: 40px; height: 1px; background: currentColor; }
.section-ink .sec-num { color: var(--terra-light); }
.section-ink .sec-num span { color: #d9d1c6; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.7rem); line-height: 1.04; letter-spacing: -0.018em; }
.sec-intro { margin-top: 20px; font-size: 18px; color: var(--ink-soft); max-width: 660px; }
.sec-intro.small { font-size: 14px; font-style: italic; color: var(--muted); margin-top: 14px; }
.section-ink .sec-intro { color: #d9d1c6; }

/* Métiers */
.trades { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.trade { padding: 26px 28px 8px; border-left: 1px solid var(--rule); }
.trade:first-child { border-left: 0; padding-left: 0; }
.trade .trade-num { margin: 0 0 8px; font: italic 400 44px/1 var(--serif); color: var(--terra); }
.trade h3 { font-size: 28px; margin-bottom: 14px; }
.trade p { font-size: 16px; color: var(--ink-soft); }
.trade ul { list-style: none; margin: 18px 0 0; padding: 0; }
.trade li { border-top: 1px solid var(--rule); padding: 9px 0; font-size: 14.5px; }

/* Réalisations */
.filters { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.filter { border: 0; border-bottom: 2px solid transparent; background: none; padding: 6px 1px; cursor: pointer; font-size: 15px; font-weight: 500; color: var(--ink-soft); }
.filter:hover { color: var(--ink); border-bottom-color: var(--rule); }
.filter[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--terra); font-weight: 600; }
.works-count { font-size: 13px; color: var(--muted); margin: -12px 0 22px; letter-spacing: 0.04em; }
.works { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 44px 28px; }
.work-item { grid-column: span 6; }
.work-item[data-size="7"] { grid-column: span 7; }
.work-item[data-size="5"] { grid-column: span 5; }
.work-item[data-size="12"] { grid-column: 1 / -1; }
.work { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: zoom-in; }
.work-img { display: block; height: clamp(300px, 30vw, 440px); overflow: hidden; background: #e2d9cb; }
.work-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.work-img.is-drawing { background: var(--bone); }
.work-img.is-drawing img { object-fit: contain; }
.work:hover .work-img img { transform: scale(1.03); }
.work-cap { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 18px; flex-wrap: wrap; padding: 14px 0 12px; border-bottom: 1px solid var(--rule); }
.work-title { font: 500 22px/1.25 var(--serif); }
.work-meta { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.work:hover .work-title { color: var(--terra-ink); }
.work:focus-visible { outline-offset: 6px; }

/* Visionneuse */
.viewer { padding: 0; border: 0; background: var(--bone); color: var(--ink); width: min(1200px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto; }
.viewer::backdrop { background: rgba(22, 20, 18, 0.86); }
.viewer-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 340px; }
.viewer-fig { margin: 0; background: #1c1a18; display: flex; align-items: center; justify-content: center; }
.viewer-fig img { width: 100%; height: min(78vh, 760px); object-fit: contain; }
.viewer-text { padding: 56px 32px 32px; display: flex; flex-direction: column; }
.viewer-count { font-size: 12px; font-weight: 700; letter-spacing: 0.2em; color: var(--terra-ink); margin-bottom: 14px; }
.viewer-text h3 { font-size: 30px; line-height: 1.15; margin-bottom: 10px; }
.viewer-meta { font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.viewer-desc { font-size: 16px; color: var(--ink-soft); }
.viewer-hint { font-size: 13px; color: var(--muted); font-style: italic; margin-top: auto; }
.viewer-nav { display: flex; gap: 10px; border-top: 1px solid var(--rule); padding-top: 18px; }
.viewer-btn { flex: 1; padding: 12px 10px; border: 1px solid var(--ink); background: none; cursor: pointer; font-weight: 600; font-size: 14px; }
.viewer-btn:hover { background: var(--ink); color: var(--bone); }
.viewer-close { position: absolute; top: 0; right: 0; width: 52px; height: 52px; border: 0; background: var(--ink); color: var(--bone); font-size: 30px; line-height: 1; cursor: pointer; }
.viewer-close:hover { background: var(--terra-ink); }

/* Méthode */
.frise { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 28px; }
.frise li { position: relative; padding-top: 34px; border-top: 1px solid var(--ink); }
.frise li::before { content: ""; position: absolute; top: -6px; left: 0; width: 11px; height: 11px; background: var(--terra); }
.frise-num { margin: 0 0 14px; font: italic 400 54px/1 var(--serif); color: var(--terra); }
.frise h3 { font-size: 24px; line-height: 1.2; margin-bottom: 6px; }
.frise-when { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--terra-ink); }
.frise p:last-child { font-size: 15.5px; color: var(--ink-soft); margin: 0; }

/* Simulateur */
.sim { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.sim-form { display: grid; gap: 34px; }
.sim-field { border: 0; padding: 0; margin: 0; min-width: 0; }
.sim-field legend, .legend-like { display: block; padding: 0; margin-bottom: 14px; font: 500 22px/1.3 var(--serif); }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice-col { display: grid; gap: 10px; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid color-mix(in srgb, currentColor 38%, transparent); cursor: pointer; font-size: 15px; font-weight: 500; transition: border-color 0.15s, background-color 0.15s; }
.choice input { accent-color: var(--terra); width: 17px; height: 17px; margin: 0; flex-shrink: 0; }
.choice:hover { border-color: currentColor; }
.choice:has(input:checked) { border-color: currentColor; background: color-mix(in srgb, currentColor 7%, transparent); }
.choice:has(input:focus-visible) { outline: 2px solid var(--terra-ink); outline-offset: 2px; }
.section-ink .choice:has(input:focus-visible) { outline-color: var(--terra-light); }
.choice-wide { align-items: flex-start; }
.choice-wide input { margin-top: 3px; }
.choice-wide strong { display: block; font: 600 17px/1.3 var(--serif); margin-bottom: 2px; }
.choice-wide span { font-weight: 400; font-size: 14.5px; }
.section-ink .choice-wide span { color: #d9d1c6; }
.section-ink .choice-wide strong { color: var(--bone); }
.range-row { display: flex; align-items: center; gap: 22px; }
.range-row input { flex: 1; accent-color: var(--terra-light); height: 28px; }
.range-row output { min-width: 84px; text-align: right; font: 500 28px/1 var(--serif); }
.check { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; cursor: pointer; }
.check input { accent-color: var(--terra); width: 17px; height: 17px; margin: 3px 0 0; flex-shrink: 0; }
.sim-result { position: sticky; top: calc(var(--header-h) + 24px); border: 1px solid rgba(244, 239, 231, 0.32); padding: clamp(24px, 3vw, 40px); }
.sim-label { font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--terra-light); }
.sim-range { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; font: 500 clamp(2.1rem, 3.6vw, 3.1rem)/1.05 var(--serif); margin-bottom: 14px; font-variant-numeric: lining-nums; }
.sim-dash { color: var(--terra-light); }
.sim-summary { color: #d9d1c6; font-size: 15px; }
.sim-split { margin: 22px 0; border-top: 1px solid rgba(244, 239, 231, 0.22); }
.sim-split div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(244, 239, 231, 0.22); font-size: 14.5px; }
.sim-split dt { color: #d9d1c6; }
.sim-split dd { margin: 0; font-weight: 600; }
.sim-note { font-size: 13.5px; color: #c9bfb2; font-style: italic; }

/* Atelier */
.atelier { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 88px); }
.atelier-text { columns: 2; column-gap: 40px; font-size: 16.5px; color: var(--ink-soft); }
.atelier-text p { break-inside: avoid-column; }
.dropcap::first-letter { float: left; font: 500 5.1em/0.8 var(--serif); color: var(--terra); padding: 8px 10px 0 0; }
.pull { column-span: all; margin: 18px 0 0; padding: 26px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.pull p { font: italic 400 clamp(1.5rem, 2.4vw, 2rem)/1.35 var(--serif); color: var(--ink); margin: 0 0 12px; }
.pull footer { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.materials h3 { font-size: 28px; margin-bottom: 8px; }
.materials-intro { font-size: 15px; color: var(--muted); }
.swatches { list-style: none; margin: 18px 0 0; padding: 0; border-bottom: 1px solid var(--rule); }
.swatches li { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 18px; align-items: center; padding: 13px 0; border-top: 1px solid var(--rule); font-size: 14.5px; color: var(--ink-soft); }
.swatches strong { display: block; font: 600 17px/1.3 var(--serif); color: var(--ink); }
.swatch { width: 58px; height: 58px; border: 1px solid rgba(34, 34, 34, 0.15); }
.sw-chene { background: repeating-linear-gradient(98deg, rgba(90, 60, 25, 0.12) 0 2px, transparent 2px 9px), #c39a64; }
.sw-noyer { background: repeating-linear-gradient(94deg, rgba(20, 10, 4, 0.18) 0 2px, transparent 2px 8px), #614431; }
.sw-frene { background: repeating-linear-gradient(100deg, rgba(110, 80, 40, 0.1) 0 1px, transparent 1px 6px), #d9c39f; }
.sw-bouleau { background: repeating-linear-gradient(0deg, rgba(120, 90, 50, 0.16) 0 1px, transparent 1px 6px), #e8d7b4; }
.sw-pierre { background: radial-gradient(circle at 30% 40%, rgba(120, 100, 80, 0.12) 0 2px, transparent 3px) 0 0 / 12px 12px, #d8cebd; }
.sw-laque { background: #3e4a45; }

/* Garanties */
.guarantees { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
.guarantees li { border-top: 1px solid var(--ink); padding: 22px 0 34px; }
.guarantees h3 { font-size: 24px; margin-bottom: 10px; }
.guarantees p { font-size: 15.5px; color: var(--ink-soft); margin: 0; }

/* Zone */
.zone { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.zone-text h2 { margin-bottom: 20px; }
.zone-text > p { color: var(--ink-soft); }
.zone-table { width: 100%; border-collapse: collapse; margin-top: 26px; font-size: 15px; }
.zone-table th, .zone-table td { padding: 9px 0; border-bottom: 1px solid var(--rule); text-align: left; }
.zone-table thead th { font-size: 11.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--ink); }
.zone-table tbody th { font-weight: 500; }
.zone-table td { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.zone-table thead th:last-child { text-align: right; }
.zone-table tbody tr:first-child th, .zone-table tbody tr:first-child td { color: var(--terra-ink); font-weight: 700; }
.zone-map { margin: 0; background: var(--paper); }
.zone-map figcaption { padding: 12px 0 0; background: var(--bone); }
.map-label { font: 500 14px var(--sans); fill: var(--ink); }
.map-label-strong { font-weight: 700; fill: var(--terra-ink); font-size: 15px; }
.map-note { font: italic 400 14px var(--serif); fill: var(--muted); }
.map-towns circle { fill: var(--bone); stroke: var(--ink); stroke-width: 1.6; }

/* Avis */
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.review { margin: 0; border-top: 1px solid var(--ink); padding-top: 26px; display: flex; flex-direction: column; }
.review blockquote { margin: 0 0 22px; }
.review blockquote p { font: italic 400 21px/1.5 var(--serif); margin: 0; }
.review figcaption { margin-top: auto; font-size: 13.5px; color: var(--muted); }
.review figcaption strong { display: block; font-size: 15px; color: var(--ink); }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-grid .sec-head { position: sticky; top: calc(var(--header-h) + 32px); }
.faq { border-bottom: 1px solid var(--rule); }
.faq details { border-top: 1px solid var(--rule); }
.faq details:first-child { border-top-color: var(--ink); }
.faq summary { position: relative; list-style: none; cursor: pointer; padding: 22px 48px 22px 0; font: 500 21px/1.35 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 300 30px/1 var(--sans); color: var(--terra); }
.faq details[open] summary::after { content: "−"; }
.faq summary:hover { color: var(--terra-ink); }
.faq details p { max-width: 640px; color: var(--ink-soft); padding-bottom: 12px; }

/* Devis */
.devis { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.devis-aside > p { color: var(--ink-soft); margin-top: 20px; }
.devis-points { list-style: none; padding: 0; margin: 26px 0 0; border-top: 1px solid var(--ink); }
.devis-points li { padding: 11px 0 11px 26px; border-bottom: 1px solid var(--rule); position: relative; font-size: 15px; }
.devis-points li::before { content: ""; position: absolute; left: 0; top: 50%; width: 12px; height: 1px; background: var(--terra); }
.devis-box { background: var(--paper); border: 1px solid var(--ink); padding: clamp(22px, 4vw, 44px); }
.steps-nav { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.steps-nav li { display: flex; align-items: center; gap: 8px; padding-bottom: 12px; border-bottom: 2px solid var(--rule); font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.steps-nav li span { display: inline-grid; place-items: center; width: 24px; height: 24px; border: 1px solid currentColor; font-size: 12px; letter-spacing: 0; flex-shrink: 0; }
.steps-nav li.is-current { color: var(--ink); border-bottom-color: var(--terra); }
.steps-nav li.is-done { color: var(--ink-soft); border-bottom-color: var(--ink); }
.steps-nav li.is-done span { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.step { border: 0; padding: 0; margin: 30px 0 0; min-width: 0; }
.step-title { padding: 0; margin-bottom: 6px; font: 500 26px/1.25 var(--serif); }
.step-title:focus { outline: none; }
.step-help { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.field { margin: 22px 0 0; border: 0; padding: 0; min-width: 0; }
.field > label, fieldset.field > legend { display: block; padding: 0; margin-bottom: 8px; font-weight: 600; font-size: 14.5px; }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--field); border-radius: 0; background: #fff;
  font-size: 16px; color: var(--ink);
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--terra-ink); outline-offset: 1px; border-color: var(--ink); }
.field [aria-invalid="true"] { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.field-help { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.step .check { margin-top: 24px; }
.sim-attached { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 18px; padding: 12px 16px; border: 1px dashed var(--terra); font-size: 14.5px; }
.sim-attached p { margin: 0; }
.form-error { margin: 18px 0 0; color: var(--error); font-weight: 600; font-size: 14.5px; }
.form-error:empty { display: none; }
.step-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--rule); }
.step-actions #step-next { margin-left: auto; }
.devis-done:focus { outline: none; }
.done-title { font: 500 30px/1.2 var(--serif); margin-bottom: 16px; }
.done-demo { background: var(--bone-2); border-left: 3px solid var(--terra); padding: 14px 18px; font-size: 15px; }
.done-recap { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0 24px; margin: 22px 0 28px; font-size: 15px; }
.done-recap dt, .done-recap dd { padding: 9px 0; border-bottom: 1px solid var(--rule); margin: 0; }
.done-recap dt { color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; border-top: 1px solid var(--ink); padding-top: 28px; }
.contact-grid h3 { font-size: 24px; margin-bottom: 16px; }
.contact-grid p { color: var(--ink-soft); font-size: 16px; }
.big-tel { font: 500 30px/1.2 var(--serif); font-variant-numeric: lining-nums; text-decoration: none; color: var(--ink); }
.big-tel:hover { color: var(--terra-ink); }
.hours { border-collapse: collapse; width: 100%; font-size: 15.5px; margin-bottom: 12px; }
.hours th, .hours td { text-align: left; vertical-align: top; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.hours th { font-weight: 500; padding-right: 16px; }
.hours td { color: var(--ink-soft); text-align: right; }

/* Pied de page */
.site-footer { background: var(--ink); color: #e9e2d6; padding: 72px 0 32px; font-size: 15px; }
.footer-top { display: grid; grid-template-columns: 2fr 1.4fr 1fr 1.1fr 1fr; gap: 40px; }
.logo-footer { font-size: 34px; color: var(--bone); margin-bottom: 14px; }
.logo-footer em { color: var(--terra-light); }
.footer-brand p:last-child { color: #c9bfb2; max-width: 320px; }
.footer-title { font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: #c9bfb2; margin-bottom: 14px; }
.site-footer a { color: var(--bone); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer :focus-visible { outline-color: var(--terra-light); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-legal { margin: 56px 0 0; padding-top: 22px; border-top: 1px solid rgba(244, 239, 231, 0.16); font-size: 13px; color: #b9afa3; }

/* Tablette */
@media (max-width: 1100px) {
  .hide-m { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 20px; padding: 12px var(--gutter) 28px; background: var(--bone); border-bottom: 1px solid var(--ink); }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: 13px 0; border-bottom: 1px solid var(--rule); font: 500 22px/1.2 var(--serif); }
  .nav .btn { align-self: flex-start; }
}
@media (max-width: 980px) {
  .hero-head { grid-template-columns: 1fr; gap: 20px; }
  .hero h1, .hero-side { grid-column: auto; }
  .hero-side { max-width: 620px; }
  .hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-facts div:nth-child(3) { border-left: 0; padding-left: 0; }
  .hero-facts div:nth-child(n + 3) { border-top: 1px solid var(--rule); }
  .trades { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trade:nth-child(3) { border-left: 0; padding-left: 0; }
  .trade:nth-child(n + 3) { border-top: 1px solid var(--rule); margin-top: 18px; }
  .work-item, .work-item[data-size] { grid-column: span 6; }
  .work-item.is-alone { grid-column: 1 / -1; }
  .work-img { height: 300px; }
  .viewer-in { grid-template-columns: 1fr; }
  .viewer-fig img { height: min(56vh, 560px); }
  .viewer-text { padding: 26px 24px 24px; }
  .viewer-hint { margin-top: 8px; }
  .frise { grid-template-columns: 1fr; gap: 0; }
  .frise li { display: grid; grid-template-columns: 90px minmax(0, 1fr); column-gap: 20px; padding: 26px 0 28px; }
  .frise li::before { top: -6px; }
  .frise-num { grid-row: 1 / span 3; font-size: 46px; }
  .frise li > :not(.frise-num) { grid-column: 2; }
  .sim { grid-template-columns: 1fr; }
  .sim-result { position: static; }
  .atelier { grid-template-columns: 1fr; }
  .guarantees { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zone { grid-template-columns: 1fr; }
  .reviews { grid-template-columns: 1fr; gap: 28px; }
  .faq-grid, .devis { grid-template-columns: 1fr; }
  .faq-grid .sec-head { position: static; margin-bottom: 0; }
  .footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

/* Mobile */
@media (max-width: 640px) {
  body { font-size: 16px; }
  :root { --header-h: 64px; }
  .hide-s { display: none; }
  .infobar .sep { display: none; }
  .logo-name { font-size: 24px; }
  .logo-sub { font-size: 11px; letter-spacing: 0.12em; }
  .hero-kicker { font-size: 11px; letter-spacing: 0.12em; }
  .hero-kicker span:nth-child(2) { display: none; }
  .lead { font-size: 17px; }
  .hero-figure img { aspect-ratio: 4 / 3; }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts div, .hero-facts div:nth-child(3) { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 13px 0; border-left: 0; border-top: 1px solid var(--rule); }
  .hero-facts div:first-child { border-top: 0; }
  .hero-facts dt { flex-shrink: 0; }
  .hero-facts dd { margin: 0; font-size: 17px; text-align: right; }
  .trades { grid-template-columns: 1fr; }
  .trade, .trade:nth-child(3) { border-left: 0; padding: 22px 0 6px; }
  .trade:nth-child(n + 2) { border-top: 1px solid var(--rule); margin-top: 18px; }
  .works { gap: 32px; }
  .work-item, .work-item[data-size] { grid-column: 1 / -1; }
  .work-img { height: auto; aspect-ratio: 4 / 3; }
  .filters { gap: 4px 16px; }
  .filter { font-size: 14.5px; }
  .viewer { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
  .viewer-fig img { height: auto; max-height: 46vh; }
  .viewer-text h3 { font-size: 24px; }
  .frise li { grid-template-columns: 64px minmax(0, 1fr); column-gap: 12px; }
  .frise-num { font-size: 38px; }
  .choice-grid { grid-template-columns: 1fr; }
  .choice-row .choice { flex: 1 1 calc(50% - 10px); }
  .range-row output { font-size: 24px; }
  .atelier-text { columns: 1; }
  .guarantees { grid-template-columns: 1fr; }
  .guarantees li { padding-bottom: 26px; }
  .field-row { grid-template-columns: 1fr; }
  .steps-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .steps-nav li { flex-direction: column; align-items: flex-start; font-size: 11px; letter-spacing: 0.02em; gap: 6px; }
  .step-title { font-size: 22px; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .big-tel { font-size: 26px; }
  .done-recap { grid-template-columns: 1fr; }
  .done-recap dt { border-bottom: 0; padding-bottom: 0; }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .work:hover .work-img img { transform: none; }
}
