/* =====================================================================
   Atelier Vert — architecture, rénovation bas carbone.
   Grammaire : la planche d'architecte. Papier gris-vert, traits fins,
   cotes, cartouche. Angles vifs (un seul système : 2 px), Outfit léger
   pour les titres, Inter pour le texte. L'accent mousse ne sert qu'aux
   actions (R14).
   ===================================================================== */
:root {
  --bg: #EEF0EB;
  --surface: #F8F9F6;
  --surface-2: #E3E7E0;
  --ink: #1C231E;
  --muted: #566058;
  --line: #C6CCC3;
  --accent: #2E5E3E;
  --accent-ink: #FFFFFF;
  --danger: #A8322A;
  --ok: #2E6B3F;
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-text: 'Inter', system-ui, sans-serif;
  --radius: 2px;
  --radius-sm: 2px;
  --top-h: 64px;
  --chrome: calc(var(--demobar-h) + var(--top-h));
  --hero-h: 185vh;
  --max: 1280px;
  --paper-dark: #1C231E;
  --paper-dark-ink: #E7ECE5;
  --paper-dark-muted: #A9B4AA;
}

[hidden] { display: none !important; }
html { scroll-padding-top: calc(var(--chrome) + 16px); }
body { font-size: 17px; }
h1, h2, h3 { font-weight: 300; letter-spacing: -0.025em; }

.eyebrow {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.code { font-variant-numeric: tabular-nums; color: var(--ink); padding: 2px 6px; border: 1px solid var(--ink); letter-spacing: .04em; }

/* ---------- En-tête ---------- */
.top {
  position: sticky; top: var(--demobar-h); z-index: 50; height: var(--top-h);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo {
  display: inline-flex; align-items: center; gap: 12px; min-height: 44px;
  font-family: var(--font-display); font-size: 22px; font-weight: 400; letter-spacing: -0.02em; text-decoration: none;
}
.logo__mark { position: relative; width: 22px; height: 22px; border: 1.5px solid var(--ink); }
.logo__mark::after { content: ""; position: absolute; left: -1px; top: 50%; width: 29px; height: 1.5px; background: var(--ink); transform: rotate(-45deg); transform-origin: left center; translate: 2px 9px; }
.top__nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.top__nav a:not(.btn) { text-decoration: none; padding-block: 12px; background: linear-gradient(currentColor, currentColor) 0 calc(100% - 8px) / 0 1px no-repeat; transition: background-size var(--t-in) var(--ease-out); }
.top__nav a:not(.btn):hover { background-size: 100% 1px; }
.top__nav .btn { min-height: 44px; font-size: 15px; }

/* ---------- A-01 Ouverture ---------- */
.hero { position: relative; height: var(--hero-h); }
.hero__track { position: absolute; left: 0; right: 0; top: 0; height: calc(var(--hero-h) - 100vh + var(--chrome) + 40vh); pointer-events: none; }
.hero__stick {
  position: sticky; top: var(--chrome); height: calc(100vh - var(--chrome)); min-height: 560px;
  display: grid; align-items: center;
}
.hero__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.hero__text { grid-column: 1 / span 6; display: flex; flex-direction: column; gap: 28px; padding-bottom: 2px; }
.hero__text .eyebrow { margin-bottom: auto; padding-top: 2px; }
.hero h1 { font-size: clamp(52px, 6.6vw, 104px); line-height: .94; letter-spacing: -0.045em; max-width: 9ch; }
.hero__lede { font-size: 19px; line-height: 1.55; max-width: 44ch; color: var(--muted); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }

.sheet { grid-column: 8 / -1; margin: 0; border: 1px solid var(--ink); background: var(--surface); align-self: center; }
.sheet__draw { aspect-ratio: 4 / 5; background: #2A302C; }
.cartouche { display: grid; grid-template-columns: 2fr 1fr 1fr; border-top: 1px solid var(--ink); }
.cartouche__cell { display: grid; gap: 2px; padding: 10px 14px; border-left: 1px solid var(--ink); min-width: 0; }
.cartouche__cell:first-child { border-left: 0; }
.cartouche small { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cartouche b { font-family: var(--font-display); font-weight: 400; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cartouche b.is-swap { animation: swap var(--t-in) var(--ease-out); }
@keyframes swap { from { opacity: 0; translate: 0 6px; } }

/* ---------- Chiffres ---------- */
.facts { border-block: 1px solid var(--ink); background: var(--bg); position: relative; z-index: 1; }
.facts__row { display: grid; grid-template-columns: repeat(4, 1fr); margin-block: 0; }
.facts__row > div { padding: 22px 24px 24px 0; display: grid; gap: 6px; }
.facts__row > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 0; font-family: var(--font-display); font-weight: 300; font-size: clamp(36px, 4vw, 56px); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }

/* ---------- Titres de section ---------- */
section { position: relative; }
.sec-head { display: grid; gap: 16px; margin-bottom: clamp(40px, 6vw, 80px); }
.sec-head h2, .method h2 { font-size: clamp(38px, 4.6vw, 68px); line-height: 1; letter-spacing: -0.035em; max-width: 16ch; }
.sec-head > p:not(.eyebrow) { color: var(--muted); font-size: 18px; }

/* ---------- A-02 Projets : trois compositions différentes ---------- */
.projects { padding-block: clamp(80px, 11vw, 160px) clamp(40px, 6vw, 80px); }
.proj { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; margin-bottom: clamp(72px, 10vw, 140px); }
.proj__img { margin: 0; position: relative; background: var(--surface-2); overflow: hidden; }
.proj__img img { width: 100%; height: 100%; object-fit: cover; transition: scale 900ms var(--ease-out); }
.proj:hover .proj__img img { scale: 1.02; }
.proj__body { display: grid; gap: 14px; align-content: start; }
.proj__no { font-family: var(--font-display); font-weight: 300; font-size: 15px; letter-spacing: .02em; color: var(--muted); padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.proj h3 { font-size: clamp(30px, 3vw, 42px); line-height: 1.05; }
.proj__meta { font-size: 14px; color: var(--muted); margin-top: -6px; }
.proj__body > p:not(.proj__no):not(.proj__meta) { line-height: 1.6; }

.proj--a .proj__img { grid-column: 1 / span 7; aspect-ratio: 4 / 3; }
.proj--a .proj__body { grid-column: 9 / -1; align-self: end; }

.proj--b .proj__body { grid-column: 2 / span 4; align-self: center; }
.proj--b .proj__img { grid-column: 7 / span 5; aspect-ratio: 4 / 5; }

.proj--c { margin-bottom: 0; }
.proj--c .proj__img { grid-column: 1 / -1; aspect-ratio: 21 / 8; }
.proj--c .proj__img img { object-position: 50% 30%; }
.proj--c .proj__body { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.proj--c .proj__title { grid-column: 1 / span 4; display: grid; gap: 14px; align-content: start; }
.proj--c .proj__body > p { grid-column: 5 / span 4; padding-top: 30px; }
.proj--c .proj__data { grid-column: 10 / -1; display: grid; gap: 14px; padding-top: 30px; align-content: start; }

/* Cotes : la donnée posée comme sur un plan */
.cotes { display: grid; grid-template-columns: repeat(3, auto); margin: 6px 0 0; }
.cotes > div { position: relative; display: grid; gap: 2px; padding: 12px 10px 0; }
.cotes > div::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--ink); }
.cotes > div::after { content: ""; position: absolute; left: 0; top: -4px; width: 1px; height: 9px; background: var(--ink); box-shadow: 0 0 0 0 var(--ink); }
.cotes > div:last-child { padding-right: 0; }
.cotes > div:last-child > dd, .cotes > div:last-child > dt { padding-right: 0; }
.cotes > div:last-child::before { right: 0; }
.cotes > div:first-child { padding-left: 0; }
.cotes dt { font-size: 12px; color: var(--muted); }
.cotes dd { margin: 0; font-family: var(--font-display); font-size: 22px; font-weight: 400; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.cotes { position: relative; }
.cotes::after { content: ""; position: absolute; right: 0; top: -4px; width: 1px; height: 9px; background: var(--ink); }

.kept { display: grid; gap: 8px; margin-top: 10px; }
.kept__bar { display: block; height: 6px; background: var(--surface-2); position: relative; overflow: hidden; }
.kept__bar span { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(var(--k)); }
.js [data-rev]:not(.is-in) .kept__bar span { transform: scaleX(0); }
.js [data-rev].is-in .kept__bar span { transition: transform 900ms var(--ease-out) 200ms; }
.kept p { font-size: 14px; color: var(--muted); }
.kept b { color: var(--ink); font-weight: 600; }

/* ---------- A-03 Méthode ---------- */
.method { padding-block: clamp(80px, 10vw, 140px); background: var(--surface); border-block: 1px solid var(--line); }
.method__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.method__head { grid-column: 1 / span 4; display: grid; gap: 18px; align-content: start; position: sticky; top: calc(var(--chrome) + 32px); align-self: start; }
.method__head > p:not(.eyebrow) { color: var(--muted); }
.phases { grid-column: 6 / -1; list-style: none; margin: 0; padding: 0; }
.phases li {
  position: relative; display: grid; grid-template-columns: 88px 1fr; grid-template-rows: auto auto; column-gap: 24px; row-gap: 6px;
  padding: 26px 0 30px; border-top: 1px solid var(--ink);
}
.phases li:last-child { border-bottom: 1px solid var(--ink); }
.phases__pct { grid-row: 1 / span 2; font-family: var(--font-display); font-weight: 300; font-size: 40px; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.phases h3 { font-size: 26px; font-weight: 400; }
.phases p { color: var(--muted); max-width: 54ch; }
.phases__bar { position: absolute; left: 0; bottom: -1px; height: 3px; width: calc(var(--p) * 100%); background: var(--ink); transform-origin: left; }
.js .phases li:not(.is-in) .phases__bar { transform: scaleX(0); }
.js .phases li.is-in .phases__bar { transition: transform 700ms var(--ease-out) 150ms; }

/* ---------- A-04 Brief ---------- */
.brief { padding-block: clamp(80px, 10vw, 140px); }
.brief__head h2 { max-width: 14ch; }
.brief__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; }
.brief__main { grid-column: 1 / span 7; min-width: 0; }
.brief__form { display: grid; gap: 8px; }
.brief .steps { margin-bottom: 28px; }
.brief .steps li { font-size: 13px; font-weight: 500; }
.brief .steps li::before { height: 2px; border-radius: 0; }

.step { display: grid; gap: 18px; min-height: 360px; align-content: start; }
.step[hidden] { display: none; }
.step.is-entering { animation: step-in var(--t-in) var(--ease-out) both; }
.step.is-back { --step-x: -16px; }
@keyframes step-in { from { opacity: 0; translate: var(--step-x, 16px) 0; } }
.step__q { font-family: var(--font-display); font-weight: 300; font-size: clamp(28px, 2.8vw, 38px); line-height: 1.1; letter-spacing: -0.025em; padding: 0; margin-bottom: 6px; outline: none; }

/* Étape 1 : quatre plans de bâtiment */
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.opt { position: relative; display: block; }
.opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.opt__box {
  position: relative; display: grid; gap: 4px; min-height: 132px; padding: 18px 18px 16px; align-content: start;
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color var(--t-out) var(--ease-out), box-shadow var(--t-out) var(--ease-out), background-color var(--t-out);
}
.opt__box b { font-family: var(--font-display); font-weight: 400; font-size: 21px; letter-spacing: -0.01em; }
.opt__box small { font-size: 13px; color: var(--muted); }
.opt__pic { width: 30px; height: 30px; stroke-width: 1.4; margin-bottom: 18px; }
.opt__box::after {
  content: ""; position: absolute; top: 14px; right: 14px; width: 22px; height: 22px; border: 1px solid var(--line);
  background: var(--surface) no-repeat center / 14px;
  transition: background-color var(--t-out), border-color var(--t-out);
}
.opt input:hover + .opt__box { border-color: var(--ink); }
.opt input:checked + .opt__box { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.opt input:checked + .opt__box::after {
  border-color: var(--accent); background-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
.opt input:focus-visible + .opt__box { outline: 2px solid var(--accent); outline-offset: 3px; }
.field.is-invalid .opt__box, .field.is-invalid .row__box { border-color: var(--danger); }

/* Étape 2 : surface */
.surface { display: grid; gap: 18px; }
.surface__num { display: flex; align-items: baseline; gap: 10px; }
.surface__num .input {
  width: 3.3ch; min-width: 0; padding: 0 0 6px; border: 0; border-bottom: 1.5px solid var(--ink); border-radius: 0; background: transparent;
  font-family: var(--font-display); font-weight: 300; font-size: clamp(64px, 7vw, 96px); line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums;
  box-shadow: none; min-height: 0;
}
.surface__num .input:focus { box-shadow: none; border-bottom-color: var(--accent); }
.surface__num span { font-family: var(--font-display); font-size: 28px; font-weight: 300; color: var(--muted); }
.surface__range { display: grid; gap: 8px; }
.surface__scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; margin: 0; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(var(--ink), var(--ink)) 0 0 / var(--fill, 19%) 100% no-repeat, var(--line); }
input[type="range"]::-moz-range-track { height: 2px; background: var(--line); }
input[type="range"]::-moz-range-progress { height: 2px; background: var(--ink); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -12px; border-radius: 0; background: var(--accent); border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--accent); transition: transform var(--t-press) var(--ease-out); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 0; background: var(--accent); border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--accent); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); }
input[type="range"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Étape 3 : tranches de budget, en liste réglée */
.budget__help { margin-top: -10px; }
.rows { display: grid; border-top: 1px solid var(--line); }
.row { position: relative; display: block; }
.row input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.row__box {
  display: flex; align-items: center; gap: 16px; min-height: 60px; padding: 10px 14px;
  border: 1px solid transparent; border-bottom-color: var(--line);
  font-family: var(--font-display); font-size: 21px; font-weight: 400; letter-spacing: -0.01em; font-variant-numeric: tabular-nums;
  transition: background-color var(--t-out), border-color var(--t-out);
}
.row__box small { font-family: var(--font-text); font-size: 13px; color: var(--muted); margin-left: auto; letter-spacing: 0; }
.row__dot { width: 18px; height: 18px; border: 1.5px solid var(--ink); border-radius: 50%; flex: none; position: relative; }
.row__dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform var(--t-out) var(--ease-out); }
.row input:hover + .row__box { background: var(--surface); }
.row input:checked + .row__box { background: var(--surface); border-color: var(--ink); }
.row input:checked + .row__box .row__dot { border-color: var(--accent); }
.row input:checked + .row__box .row__dot::after { transform: scale(1); }
.row input:focus-visible + .row__box { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Étape 4 : priorités et prénom */
.brief .chip span { border-radius: var(--radius-sm); border-width: 1px; }
.brief .chip input:checked + span { background: var(--ink); color: var(--surface); }
.brief .chip input:disabled + span { text-decoration: none; opacity: .4; }
.prio-full #prio-help { color: var(--ink); }
.name-field { max-width: 360px; margin-top: 10px; padding-top: 22px; border-top: 1px solid var(--line); }

.brief__nav {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding-top: 20px; border-top: 1px solid var(--ink); margin-top: 8px;
}
.brief__nav [data-next], .brief__nav [data-submit] { margin-left: auto; }
.brief__nav [data-prev].is-off { visibility: hidden; }
.brief__privacy { font-size: 13px; color: var(--muted); flex: 1 1 200px; text-align: right; }
.brief__privacy:not([hidden]) + .btn { margin-left: 0; }
.calc-mini { display: flex; align-items: baseline; justify-content: space-between; padding: 12px 14px; background: var(--paper-dark); color: var(--paper-dark-ink); margin-top: 8px; }
.calc-mini span { font-size: 13px; color: var(--paper-dark-muted); }
.calc-mini b { font-family: var(--font-display); font-weight: 400; font-size: 20px; font-variant-numeric: tabular-nums; }

/* Résultat */
.brief__done { border-radius: 0; border-color: var(--ink); padding: clamp(24px, 3vw, 40px); gap: 18px; animation: step-in var(--t-in) var(--ease-out) both; }
.brief__done:focus { outline: none; }
.brief__done .result__title { font-weight: 300; font-size: clamp(32px, 3.4vw, 48px); letter-spacing: -0.03em; }
.brief__done .result__recap { font-size: 15px; padding-block: 16px; border-block: 1px solid var(--line); }
.brief__next { color: var(--muted); font-size: 15px; }
.status-ok { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--ok); }
.status-wait { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); }
.notice--err .btn { margin-top: 10px; min-height: 44px; }

/* Panneau de calcul : un cartouche sombre */
.calc {
  grid-column: 9 / -1; position: sticky; top: calc(var(--chrome) + 24px);
  display: grid; gap: 14px; padding: 26px 26px 22px;
  background: var(--paper-dark); color: var(--paper-dark-ink);
}
.calc__label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--paper-dark-muted); }
.calc__fee { font-family: var(--font-display); font-weight: 300; font-size: clamp(48px, 4.4vw, 64px); line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; min-height: 1em; }
.calc__range { font-size: 14px; color: var(--paper-dark-muted); min-height: 2.9em; }
.calc__range b { color: var(--paper-dark-ink); font-weight: 600; }
.calc__lines { margin: 0; display: grid; border-top: 1px solid #3A433C; }
.calc__lines > div { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; padding: 12px 0; border-bottom: 1px solid #3A433C; }
.calc__lines > div[hidden] { display: none; }
.calc__lines dt { font-size: 14px; }
.calc__lines dd { margin: 0; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.calc__lines .calc__why { grid-column: 1 / -1; text-align: left; font-weight: 400; font-size: 12.5px; color: var(--paper-dark-muted); margin-top: 2px; }
.calc__warn { font-size: 13px; line-height: 1.45; padding: 10px 12px; border-left: 2px solid #C9B27A; background: #262E28; color: var(--paper-dark-ink); }
.calc__warn[hidden] { display: none; }
.calc__phases { display: grid; gap: 10px; }
.calc__bar { display: flex; gap: 3px; height: 4px; }
.calc__bar span { flex: var(--p) 1 0; background: var(--paper-dark-ink); }
.calc__bar span:nth-child(2) { opacity: .75; } .calc__bar span:nth-child(3) { opacity: .55; } .calc__bar span:nth-child(4) { opacity: .4; }
.calc__legend { display: grid; gap: 4px; margin: 0; }
.calc__legend > div { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.calc__legend dt { color: var(--paper-dark-muted); }
.calc__legend dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.calc__note { font-size: 12.5px; color: var(--paper-dark-muted); }
.calc.is-empty .calc__fee, .calc.is-empty .calc__lines dd:not(.calc__why), .calc.is-empty .calc__legend dd { color: #66706A; }
.calc__fee span.is-tick { animation: tick 220ms var(--ease-out); }
@keyframes tick { from { opacity: .55; } }

/* ---------- Atelier ---------- */
.studio { border-top: 1px solid var(--ink); }
.studio__row { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 24px; padding-block: 28px 36px; font-size: 14px; color: var(--muted); }
.studio__name { font-family: var(--font-display); font-size: 22px; color: var(--ink); }

/* ---------- Tablette ---------- */
@media (max-width: 1080px) {
  .hero h1 { font-size: clamp(48px, 7vw, 80px); }
  .hero__text { grid-column: 1 / span 7; }
  .sheet { grid-column: 8 / -1; }
  .brief__main { grid-column: 1 / span 7; }
  .calc { grid-column: 8 / -1; }
  .method__head { grid-column: 1 / span 5; }
  .phases { grid-column: 6 / -1; }
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  :root { --top-h: 56px; }
  .hero { height: auto; }
  .hero__track { height: 100%; }
  .hero__stick { position: static; height: auto; min-height: 0; display: block; padding: 20px 0 40px; }
  .hero__grid { display: flex; flex-direction: column; gap: 32px; }
  .hero__text { gap: 20px; }
  .hero h1 { font-size: clamp(44px, 13vw, 60px); }
  .hero__lede { font-size: 17px; }
  .hero__cta .btn--quiet { display: none; }
  .sheet { width: 100%; }
  .sheet__draw { aspect-ratio: 4 / 3; }
  .cartouche__cell { padding: 8px 10px; }
  .cartouche b { font-size: 15px; }

  .facts__row { grid-template-columns: 1fr 1fr; }
  .facts__row > div { padding: 18px 12px 18px 0; }
  .facts__row > div + div { padding-left: 16px; }
  .facts__row > div:nth-child(3) { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .facts__row > div:nth-child(4) { border-top: 1px solid var(--line); }

  .proj { display: flex; flex-direction: column; gap: 22px; }
  .proj--b { flex-direction: column-reverse; }
  .proj--b .proj__img { aspect-ratio: 4 / 5; width: 82%; margin-left: auto; }
  .proj--c .proj__img { aspect-ratio: 4 / 3; }
  .proj--c .proj__body { display: grid; grid-template-columns: 1fr; gap: 14px; }
  .proj--c .proj__body > p, .proj--c .proj__data, .proj--c .proj__title { padding-top: 0; grid-column: auto; }
  .cotes dd { font-size: 19px; }

  .method__grid { display: block; }
  .method__head { position: static; margin-bottom: 36px; }
  .phases li { grid-template-columns: 64px 1fr; column-gap: 16px; }
  .phases__pct { font-size: 30px; }
  .phases h3 { font-size: 22px; }

  .brief__grid { display: flex; flex-direction: column; gap: 28px; }
  .step { min-height: 0; }
  .opts { grid-template-columns: 1fr 1fr; gap: 8px; }
  .opt__box { min-height: 128px; padding: 14px; }
  .opt__box b { font-size: 18px; }
  .opt__pic { width: 26px; height: 26px; margin-bottom: 12px; }
  .opt__box::after { top: 12px; right: 12px; }
  .brief__nav [data-prev].is-off { display: none; }
  .brief__nav [data-next], .brief__nav [data-submit] { flex: 1 1 auto; }
  .row__box { font-size: 18px; }
  .row__box small { display: none; }
  .name-field { max-width: none; }
  .brief__nav .btn { min-height: 48px; }
  .brief__privacy { order: 3; flex-basis: 100%; text-align: left; }
  .calc { position: static; width: 100%; }
  .studio__row { grid-template-columns: 1fr; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .js [data-rev]:not(.is-in) .kept__bar span, .js .phases li:not(.is-in) .phases__bar { transform: none; }
}
