/* Avant de vendre — avantdevendre.fr — v3
   Layout : « le dossier » — surfaces papier sur fond froid, règle graduée comme séparateur,
   étiquette DPE comme motif. Une seule ambiance (claire), couleurs explicites partout. */
:root {
  --ground: #F2F5F4;
  --surface: #FFFFFF;
  --surface-2: #E9EFEC;
  --ink: #0B1F2A;
  --ink-2: #44555E;
  --ink-3: #6E7E86;
  --line: #D3DCD8;
  --line-2: #B9C6C0;
  --accent: #0F8A6E;
  --accent-ink: #0A6A55;
  --accent-soft: #D9F0E9;
  --signal: #F2A900;
  --signal-ink: #8A5E00;
  --signal-soft: #FFF1C7;
  --danger: #D7221F;
  --navy: #0B1F2A;
  --navy-2: #123243;
  --on-navy: #F2F5F4;
  --on-navy-2: #B8C8CF;
  --font-display: "Bricolage Grotesque", "Arial Narrow", Arial, sans-serif;
  --font-body: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, monospace;
  --radius: 10px;
  --radius-lg: 18px;
  --shadow: 0 1px 2px rgba(11,31,42,.06), 0 8px 24px -12px rgba(11,31,42,.18);
  --shadow-lg: 0 2px 4px rgba(11,31,42,.06), 0 24px 48px -20px rgba(11,31,42,.28);
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --container: 1180px;
  --step-0: clamp(.9rem, .86rem + .2vw, 1rem);
  --step-1: clamp(1.05rem, 1rem + .3vw, 1.2rem);
  --step-2: clamp(1.3rem, 1.15rem + .7vw, 1.65rem);
  --step-3: clamp(1.7rem, 1.4rem + 1.4vw, 2.4rem);
  --step-4: clamp(2.2rem, 1.6rem + 3vw, 3.6rem);
  --step-5: clamp(2.6rem, 1.8rem + 4.2vw, 4.6rem);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--font-body); font-size: var(--step-0); line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -.015em; margin: 0 0 .5em; text-wrap: balance; font-weight: 700; }
h1 { font-size: var(--step-5); font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p { margin: 0 0 1em; }
.lede { font-size: var(--step-1); color: var(--ink-2); max-width: 62ch; }
.measure { max-width: 66ch; }
.mono { font-family: var(--font-mono); font-size: .8em; letter-spacing: .02em; }
.eyebrow { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 .9rem; display: flex; gap: .6rem; align-items: center; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: .5rem .8rem; z-index: 999; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.section { padding-block: clamp(3rem, 5vw, 5.5rem); }
.section--tight { padding-block: clamp(2rem, 3.5vw, 3.5rem); }
.section--navy { background: var(--navy); color: var(--on-navy); }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy .eyebrow { color: #7FD6BF; }
.section--navy .eyebrow::before { background: #7FD6BF; }
.section--navy p { color: var(--on-navy-2); }
.section--alt { background: var(--surface-2); }
.section-head { display: grid; gap: .5rem; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); max-width: 760px; }
.section-head p { color: var(--ink-2); margin: 0; }

/* Règle graduée — séparateur de sections */
.rule { height: 18px; background-repeat: repeat-x; opacity: .9;
  background-image:
    repeating-linear-gradient(to right, var(--line-2) 0 1px, transparent 1px 10px),
    repeating-linear-gradient(to right, var(--line-2) 0 1px, transparent 1px 50px);
  background-size: 10px 6px, 50px 14px; background-position: 0 100%, 0 100%; border-bottom: 1px solid var(--line-2); }
.section--navy .rule { border-color: #2A4858; background-image:
  repeating-linear-gradient(to right, #2A4858 0 1px, transparent 1px 10px),
  repeating-linear-gradient(to right, #2A4858 0 1px, transparent 1px 50px); }

/* Header */
.ribbon { background: var(--signal-soft); color: var(--signal-ink); font-size: .8rem; text-align: center; padding: .35rem var(--gutter-r) .35rem var(--gutter); font-family: var(--font-mono); letter-spacing: .02em; }
.ribbon b { font-weight: 600; }
.header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(242,245,244,.92); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em; font-size: 1.05rem; line-height: 1.05; }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand small { display: block; font-family: var(--font-mono); font-weight: 500; font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin-top: .2rem; }
.nav { margin-left: auto; display: flex; align-items: center; gap: .2rem; }
.nav a { text-decoration: none; color: var(--ink-2); font-weight: 500; padding: .5rem .7rem; border-radius: 8px; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.header-cta { display: flex; align-items: center; gap: .6rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 1.25rem; border-radius: 999px; font-weight: 600; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; font-family: var(--font-body); font-size: .98rem; line-height: 1; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 6px 16px -8px rgba(15,138,110,.6); }
.btn--primary:hover { background: var(--accent-ink); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); background: var(--surface); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--accent-soft); color: var(--navy); }
.btn--signal { background: var(--signal); color: var(--navy); }
.btn--signal:hover { background: #FFC233; color: var(--navy); }
.btn svg { width: 18px; height: 18px; }
.btn--sm { padding: .55rem .9rem; font-size: .9rem; }
.burger { display: none; margin-left: auto; background: none; border: 1.5px solid var(--line-2); border-radius: 8px; width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
.burger svg { width: 22px; height: 22px; }
@media (max-width: 960px) {
  .nav { display: none; }
  .header-cta .btn--ghost { display: none; }
  .burger { display: inline-flex; }
  .nav.open { display: flex; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--surface); border-bottom: 1px solid var(--line); padding: .6rem var(--gutter-r) 1rem var(--gutter); box-shadow: var(--shadow-lg); }
  .nav.open a { padding: .8rem .6rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
}
@media (max-width: 520px) { .header-cta .btn--primary span { display: none; } .header-cta .btn--primary { padding: .7rem .8rem; } }

/* Hero */
.hero { padding-block: clamp(2.5rem, 5vw, 5rem) clamp(2rem, 4vw, 4rem); position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .95fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.hero h1 { margin-bottom: .6em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { margin-bottom: 1.6rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.8rem; }
.proof { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; padding: 0; margin: 0; list-style: none; color: var(--ink-2); font-size: .92rem; }
.proof li { display: flex; align-items: center; gap: .45rem; }
.proof svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }

/* Estimateur — carte « fiche » */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.estimator { padding: 0; overflow: hidden; }
.estimator__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem 1.25rem; background: var(--navy); color: var(--on-navy); }
.estimator__head h2 { font-size: 1.05rem; margin: 0; color: #fff; }
.estimator__head .mono { color: var(--on-navy-2); }
.estimator__body { padding: 1.1rem 1.25rem 1.25rem; display: grid; gap: .95rem; }
.q { display: grid; gap: .45rem; }
.q__label { font-weight: 600; font-size: .92rem; display: flex; justify-content: space-between; gap: 1rem; }
.q__label small { font-weight: 400; color: var(--ink-3); }
.pills { display: flex; flex-wrap: wrap; gap: .4rem; }
.pills label { position: relative; }
.pills input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pills span { display: inline-flex; align-items: center; padding: .5rem .85rem; border-radius: 999px; border: 1.5px solid var(--line-2); font-size: .9rem; font-weight: 500; color: var(--ink-2); background: var(--surface); cursor: pointer; transition: all .15s ease; }
.pills input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.pills input:focus-visible + span { outline: 3px solid var(--signal); outline-offset: 2px; }
.check { display: flex; align-items: center; gap: .6rem; font-size: .92rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
.result { border-top: 1px dashed var(--line-2); padding-top: 1rem; display: grid; gap: .6rem; }
.result__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; font-size: .92rem; }
.result__list li { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.result__list li span:last-child { font-family: var(--font-mono); font-size: .85rem; color: var(--ink-2); white-space: nowrap; }
.result__list li.off span:last-child { color: var(--accent-ink); }
.result__total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-top: .6rem; border-top: 1px solid var(--line); }
.result__total strong { font-family: var(--font-display); font-size: 1.9rem; letter-spacing: -.02em; line-height: 1; }
.result__total .discount { font-size: .85rem; color: var(--accent-ink); font-weight: 600; }
.result__note { font-size: .78rem; color: var(--ink-3); margin: 0; }
.result__cta { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .3rem; }

/* Grille prestations */
.grid { display: grid; gap: 1rem; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; } }
.svc { display: grid; grid-template-rows: auto 1fr auto; gap: .6rem; padding: 1.1rem 1.2rem 1.2rem; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; min-width: 0; }
.svc:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line-2); color: var(--ink); }
.svc__top { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.svc__code { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; color: var(--accent-ink); background: var(--accent-soft); padding: .25rem .5rem; border-radius: 6px; }
.svc__icon { width: 38px; height: 38px; color: var(--ink); }
.svc h3 { font-size: 1.2rem; margin: .2rem 0 0; }
.svc p { color: var(--ink-2); font-size: .92rem; margin: 0; }
.svc__meta { display: flex; justify-content: space-between; align-items: center; gap: .6rem; font-size: .85rem; color: var(--ink-3); border-top: 1px solid var(--line); padding-top: .7rem; }
.svc__meta b { color: var(--ink); font-family: var(--font-display); font-size: 1.05rem; }
.svc__meta .arrow { color: var(--accent); font-weight: 700; }

/* Étapes */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; counter-reset: step; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--navy-2); border: 1px solid #244556; border-radius: var(--radius-lg); padding: 1.3rem; position: relative; min-width: 0; }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-mono); color: #7FD6BF; font-size: .8rem; letter-spacing: .1em; }
.step h3 { color: #fff; font-size: 1.25rem; margin: .5rem 0 .4rem; }
.step p { margin: 0; color: var(--on-navy-2); font-size: .95rem; }
.step time { display: inline-block; margin-top: .8rem; font-family: var(--font-mono); font-size: .78rem; color: var(--navy); background: var(--signal); padding: .25rem .55rem; border-radius: 6px; font-weight: 600; }

/* Échelle DPE */
.dpe { display: grid; gap: .35rem; max-width: 520px; }
.dpe__row { display: grid; grid-template-columns: 2.2rem 1fr auto; align-items: center; gap: .6rem; font-family: var(--font-mono); font-size: .8rem; color: var(--ink-2); }
.dpe__row b { color: #fff; width: 2.2rem; height: 2rem; display: grid; place-items: center; border-radius: 6px; font-family: var(--font-display); font-size: 1rem; }
.dpe__bar { height: 1.4rem; border-radius: 4px; transform-origin: left; width: var(--w); transition: width .9s cubic-bezier(.2,.7,.2,1); }
.js-anim .dpe .dpe__bar { width: 8%; }
.js-anim .dpe.in .dpe__bar { width: var(--w); }

/* Avantages / listes */
.feature { display: grid; grid-template-columns: 44px 1fr; gap: .9rem; align-items: start; min-width: 0; }
.feature__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; }
.feature__icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.15rem; margin: .15rem 0 .3rem; }
.feature p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: .6rem; align-items: start; }
.checklist svg { width: 22px; height: 22px; color: var(--accent); margin-top: .1rem; }

/* Tableaux */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; }
th, td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }
td.price { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; white-space: nowrap; }
td a { font-weight: 600; }
.article table { min-width: 0; }
.article .table-wrap, .article table { font-size: .95rem; }

/* Tarifs */
.price-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
@media (max-width: 960px) { .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; display: grid; gap: .2rem; min-width: 0; }
.price-card span { font-size: .9rem; color: var(--ink-2); }
.price-card b { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: -.02em; }
.price-card small { font-family: var(--font-mono); font-size: .72rem; color: var(--ink-3); }
.discounts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
@media (max-width: 600px) { .discounts { grid-template-columns: 1fr; } }
.discount-card { border-radius: var(--radius); padding: 1rem 1.1rem; background: var(--accent-soft); color: var(--accent-ink); display: flex; align-items: baseline; gap: .6rem; }
.discount-card b { font-family: var(--font-display); font-size: 1.8rem; letter-spacing: -.02em; }

/* Zones */
.zones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
@media (max-width: 900px) { .zones { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .zones { grid-template-columns: 1fr; } }
.zone { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .9rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); font-weight: 600; min-width: 0; transition: border-color .15s, transform .15s; }
.zone:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--ink); }
.zone small { font-family: var(--font-mono); font-weight: 400; color: var(--ink-3); font-size: .78rem; white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0; }
.chips li { font-size: .85rem; padding: .35rem .7rem; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2); background: var(--surface); }

/* FAQ */
.faq { display: grid; gap: .6rem; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 1.1rem; }
.faq summary { cursor: pointer; font-weight: 600; padding: .95rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; font-family: var(--font-display); font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--accent); font-size: 1.2rem; flex: none; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); margin: 0 0 1rem; }

/* CTA band */
.cta { background: var(--accent); color: #fff; border-radius: var(--radius-lg); padding: clamp(1.6rem, 3vw, 2.6rem); display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; }
.cta h2 { color: #fff; font-size: var(--step-3); margin: 0 0 .3em; }
.cta p { color: #E6F5F0; margin: 0; }
.cta__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; } }

/* Pages intérieures */
.page-head { padding-block: clamp(2.2rem, 4vw, 3.6rem) clamp(1.4rem, 3vw, 2.4rem); }
.page-head .wrap { display: grid; gap: .6rem; }
.crumbs { list-style: none; padding: 0; margin: 0 0 .6rem; display: flex; flex-wrap: wrap; gap: .3rem .5rem; font-size: .85rem; color: var(--ink-3); font-family: var(--font-mono); }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--accent-ink); }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--line-2); }
.page-head h1 { font-size: var(--step-4); }
.page-head .lede { margin: 0; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin-top: 1.4rem; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; display: grid; gap: .25rem; min-width: 0; }
.fact span { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.fact b { font-family: var(--font-display); font-size: 1.1rem; line-height: 1.25; }
.two-col { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: minmax(0, 1fr); } }
.aside { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 88px); display: grid; gap: 1rem; }
.aside .card { padding: 1.2rem; }
.aside h3 { font-size: 1.1rem; }
.aside .btn { width: 100%; }
.aside ul { padding-left: 1.1rem; margin: 0; color: var(--ink-2); font-size: .95rem; display: grid; gap: .3rem; }
.tip { border-left: 4px solid var(--signal); background: var(--signal-soft); padding: .9rem 1.1rem; border-radius: 0 var(--radius) var(--radius) 0; color: var(--signal-ink); }
.tip b { color: var(--ink); }
.prose h2 { font-size: var(--step-3); margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose p, .prose li { color: var(--ink-2); }
.prose p { max-width: 68ch; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .35rem; }
.prose strong { color: var(--ink); }
.prose table { min-width: 0; }
.article-meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-family: var(--font-mono); font-size: .8rem; color: var(--ink-3); }
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 960px) { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .posts { grid-template-columns: 1fr; } }
.post { display: grid; gap: .5rem; padding: 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); text-decoration: none; color: var(--ink); min-width: 0; transition: transform .2s, box-shadow .2s; align-content: start; }
.post:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--ink); }
.post time { font-family: var(--font-mono); font-size: .76rem; color: var(--ink-3); }
.post h3 { font-size: 1.15rem; margin: 0; }
.post p { margin: 0; color: var(--ink-2); font-size: .92rem; }
.post .more { color: var(--accent-ink); font-weight: 600; font-size: .9rem; }

/* Formulaire */
.form { display: grid; gap: .9rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; font-size: .9rem; }
.field input, .field select, .field textarea { font: inherit; padding: .75rem .9rem; border: 1.5px solid var(--line-2); border-radius: 10px; background: var(--surface); color: var(--ink); width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.field textarea { min-height: 120px; resize: vertical; }
.form small { color: var(--ink-3); }
.alert { padding: .9rem 1.1rem; border-radius: var(--radius); background: var(--accent-soft); color: var(--accent-ink); font-weight: 500; }
.contact-info { display: grid; gap: 1rem; }
.contact-info .card { padding: 1.2rem; display: grid; gap: .3rem; }
.contact-info .card span { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.contact-info .card a, .contact-info .card b { font-family: var(--font-display); font-size: 1.2rem; text-decoration: none; color: var(--ink); overflow-wrap: anywhere; }

/* Footer */
.footer { background: var(--navy); color: var(--on-navy-2); padding-block: 3rem 2rem; font-size: .92rem; }
.footer .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 900px) { .footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer .cols { grid-template-columns: 1fr; } }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: .7rem; font-family: var(--font-mono); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.footer a { color: var(--on-navy-2); text-decoration: none; }
.footer a:hover { color: #fff; }
.footer .brand { color: #fff; margin-bottom: .8rem; }
.footer .brand small { color: #7FD6BF; }
.footer .legal { border-top: 1px solid #244556; margin-top: 2rem; padding-top: 1.2rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; font-size: .8rem; color: #8FA3AD; }
.footer .legal .mono { color: #8FA3AD; }

/* Barre mobile */
.mbar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--surface); border-top: 1px solid var(--line); padding: .6rem var(--gutter-r) calc(.6rem + env(safe-area-inset-bottom, 0px)) var(--gutter); gap: .6rem; box-shadow: 0 -8px 24px -16px rgba(11,31,42,.3); }
.mbar .btn { flex: 1; }
@media (max-width: 760px) { .mbar { display: flex; } body { padding-bottom: 76px; } }

/* Reveal — visible au repos, animé seulement si JS + motion OK */
.js-anim .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.js-anim .reveal.in { opacity: 1; transform: none; }
.js-anim .reveal[data-delay="1"] { transition-delay: .08s; }
.js-anim .reveal[data-delay="2"] { transition-delay: .16s; }
.js-anim .reveal[data-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .js-anim .reveal { opacity: 1; transform: none; transition: none; }
  .js-anim .dpe .dpe__bar { width: var(--w); transition: none; }
  .btn, .svc, .post, .zone { transition: none; }
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(15,138,110,.12), transparent 60%),
    radial-gradient(600px 400px at -5% 100%, rgba(242,169,0,.10), transparent 60%); }
.notice { font-size: .85rem; color: var(--ink-3); }
.placeholder { outline: 2px dashed var(--signal); outline-offset: 4px; border-radius: 6px; color: var(--signal-ink); background: var(--signal-soft); padding: .1rem .35rem; }

/* ---------- v2 : visuels, tableau tarifs, wizard ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero-media { margin: 0; position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 3 / 2; background: var(--surface-2); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media figcaption { position: absolute; left: 1rem; bottom: 1rem; background: rgba(11,31,42,.86); color: #fff; padding: .55rem .85rem; border-radius: 10px; font-size: .85rem; display: flex; gap: .5rem; align-items: center; backdrop-filter: blur(6px); }
.hero-media figcaption .mono { color: #7FD6BF; font-size: .78rem; }
.page-head--media .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
@media (max-width: 900px) { .page-head--media .wrap { grid-template-columns: minmax(0, 1fr); } }
.page-media { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; background: var(--surface-2); }
.page-media img { width: 100%; height: 100%; object-fit: cover; }
.media-card { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 3 / 2; }
.media-card img, .media-wide img, .media-duo img { width: 100%; height: 100%; object-fit: cover; }
.media-wide { margin: 2rem 0 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 21 / 9; box-shadow: var(--shadow); }
.media-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 2rem; }
.media-duo figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 3 / 2; box-shadow: var(--shadow); }
@media (max-width: 600px) { .media-duo { grid-template-columns: 1fr; } }

/* cartes prestations avec image */
.svc { padding: 0 0 1.1rem; grid-template-rows: auto auto 1fr auto; overflow: hidden; }
.svc__media { position: relative; aspect-ratio: 3 / 2; background: var(--surface-2); }
.svc__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.svc:hover .svc__media img { transform: scale(1.04); }
.svc__media .svc__code { position: absolute; left: .8rem; top: .8rem; background: rgba(255,255,255,.92); }
.svc__top, .svc > p, .svc__meta { margin-left: 1.1rem; margin-right: 1.1rem; }
.svc__top { margin-top: .9rem; }
.svc__top h3 { margin: 0; font-size: 1.15rem; }
.svc > p { color: var(--ink-2); font-size: .9rem; margin: .1rem 0 .4rem; }
.svc__icon { width: 30px; height: 30px; color: var(--accent-ink); }
@media (prefers-reduced-motion: reduce) { .svc__media img { transition: none; } }

/* articles avec image */
.post { padding: 0 0 1.2rem; overflow: hidden; }
.post__img { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; margin-bottom: .6rem; }
.post time, .post h3, .post p, .post .more { margin-left: 1.2rem; margin-right: 1.2rem; }

/* tableau tarifs */
.pricing table { min-width: 0; }
.pricing__table td.price { font-size: 1.05rem; }
.pricing__discounts { vertical-align: middle; background: var(--accent-soft); width: 38%; }
.pricing__discounts div { display: flex; align-items: baseline; gap: .6rem; padding: .35rem 0; color: var(--accent-ink); white-space: nowrap; font-size: .95rem; }
.pricing__discounts b { font-family: var(--font-display); font-size: 1.45rem; letter-spacing: -.02em; min-width: 3.8rem; }
.pricing__discounts small { display: block; margin-top: .5rem; color: var(--accent-ink); font-family: var(--font-mono); font-size: .74rem; }
@media (max-width: 640px) {
  .pricing__table th:nth-child(3), .pricing__table td.pricing__discounts { display: none; }
  .pricing::after { content: "Remises : -10 % dès 3 diagnostics, -15 % dès 4, -20 % dès 5. ERP offert."; display: block; padding: .8rem 1rem; background: var(--accent-soft); color: var(--accent-ink); font-size: .9rem; font-weight: 600; }
}
.two-col--pricing { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 900px) { .two-col--pricing { grid-template-columns: minmax(0, 1fr); } }
.devis-card { overflow: hidden; }
.devis-card .estimator__head h3 { margin: 0; color: #fff; font-size: 1.05rem; }
.devis-card__body { padding: 1.1rem 1.25rem 1.25rem; display: grid; gap: .7rem; }
.devis-card__body p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.devis-card__body .btn { width: 100%; }

/* wizard */
.wizard__steps { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; counter-reset: wz; }
.wizard__steps li button { width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem .9rem; display: grid; gap: .1rem; cursor: pointer; font-family: var(--font-body); color: var(--ink-3); min-width: 0; }
.wizard__steps li button b { color: var(--ink-2); font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wizard__steps li button .mono { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.wizard__steps li.is-active button { background: var(--navy); border-color: var(--navy); color: #7FD6BF; }
.wizard__steps li.is-active button b { color: #fff; }
.wizard__steps li.is-done button { border-color: var(--accent); }
.wizard__steps li.is-done button .mono::after { content: " ✓"; color: var(--accent); }
@media (max-width: 760px) { .wizard__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wizard__layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
@media (max-width: 900px) { .wizard__layout { grid-template-columns: minmax(0, 1fr); } .wizard__side { order: -1; } }
.wizard__panel { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); padding: 1.3rem; margin: 0; display: none; }
.wizard__panel.is-active { display: block; }
.wizard__panel .q { margin-bottom: 1.2rem; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
@media (max-width: 520px) { .tiles { grid-template-columns: 1fr; } }
.tile { position: relative; }
.tile input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.tile span { display: grid; grid-template-columns: 28px 1fr; grid-template-rows: auto auto; column-gap: .7rem; padding: .9rem 1rem; border: 1.5px solid var(--line-2); border-radius: var(--radius); cursor: pointer; transition: all .15s; }
.tile span svg { width: 28px; height: 28px; grid-row: span 2; color: var(--accent-ink); }
.tile span b { font-family: var(--font-display); font-size: 1.05rem; }
.tile span small { color: var(--ink-3); font-size: .82rem; }
.tile input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.tile input:checked + span svg { color: #7FD6BF; }
.tile input:checked + span small { color: var(--on-navy-2); }
.tile input:focus-visible + span { outline: 3px solid var(--signal); outline-offset: 2px; }
.wizard__nav { display: flex; justify-content: space-between; gap: .8rem; margin-top: 1.4rem; flex-wrap: wrap; }
.wizard__diags { margin-top: 1.4rem; border-top: 1px dashed var(--line-2); padding-top: 1.2rem; }
.wizard__diags h3 { font-size: 1.05rem; display: flex; align-items: center; gap: .5rem; margin-bottom: .6rem; }
.wizard__diags h3 svg { width: 20px; height: 20px; color: var(--accent); }
.wizard__diags h3 small { font-weight: 400; color: var(--ink-3); font-family: var(--font-body); font-size: .82rem; }
.diaglist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
@media (max-width: 600px) { .diaglist { grid-template-columns: 1fr; } }
.diaglist li { display: flex; align-items: center; gap: .6rem; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 10px; font-size: .92rem; background: var(--surface); }
.diaglist li.on { border-color: var(--accent); background: var(--accent-soft); }
.diaglist li.on::before { content: "✔"; color: var(--accent-ink); font-weight: 700; }
.diaglist li.off { color: var(--ink-3); }
.diaglist li.off::before { content: "✖"; color: var(--line-2); }
.diaglist li small { margin-left: auto; font-family: var(--font-mono); font-size: .76rem; color: var(--ink-3); white-space: nowrap; }
.diaglist li.on small { color: var(--accent-ink); }
.diaglist--opt li { display: block; }
.diaglist--opt .check { display: grid; grid-template-columns: 18px 1fr; gap: .2rem .6rem; align-items: start; }
.diaglist--opt .check small { grid-column: 2; display: block; }
.diaglist--opt .check small { color: var(--ink-3); font-size: .8rem; }
.recap { display: grid; gap: .8rem; }
.recap dl { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; margin: 0; font-size: .95rem; }
.recap dt { color: var(--ink-3); font-family: var(--font-mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; padding-top: .2rem; }
.recap dd { margin: 0; }
.recap h3 { font-size: 1.05rem; margin: .4rem 0 .2rem; }
.field.invalid input, .field.invalid select { border-color: var(--danger); }
.wizard .alert { margin-top: 1rem; }

.ribbon span.long { display: inline; }
@media (max-width: 640px) { .ribbon span.long { display: none; } }

/* ---------- Avant de vendre — additions v3 ---------- */
.steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .steps--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps--4 { grid-template-columns: 1fr; } }
.section:not(.section--navy) .step { background: var(--navy); }
.step__link { display: inline-block; margin-top: .8rem; color: #7FD6BF; font-weight: 600; text-decoration: none; font-size: .9rem; }
.step__link:hover { color: #fff; }
.center { text-align: center; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 960px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .kpis { grid-template-columns: 1fr; } }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.2rem 1.3rem; display: grid; gap: .4rem; min-width: 0; box-shadow: var(--shadow); align-content: start; }
.kpi b { font-family: var(--font-display); font-size: var(--step-3); letter-spacing: -.02em; line-height: 1; color: var(--accent-ink); }
.kpi span { color: var(--ink-2); font-size: .93rem; }
.kpi small { font-family: var(--font-mono); font-size: .72rem; color: var(--ink-3); }
.sources { font-size: .82rem; color: var(--ink-3); margin-top: .8rem; }
.prose .sources { border-top: 1px solid var(--line); padding-top: .8rem; max-width: none; }
.packs .price-card b { font-size: 1.35rem; }
.ranges td.price { white-space: nowrap; }
.next { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 900px) { .next { grid-template-columns: 1fr; } }
.next__card { display: grid; gap: .5rem; align-content: start; padding: 1.3rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); text-decoration: none; color: var(--ink); min-width: 0; transition: border-color .15s, transform .15s; box-shadow: var(--shadow); }
.next__card:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--ink); }
.next__card h3 { font-size: 1.2rem; margin: 0; }
.next__card p { margin: 0; color: var(--ink-2); font-size: .93rem; }
.next__card .more { color: var(--accent-ink); font-weight: 600; }
.next__tag { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.next__card--hot { background: var(--navy); border-color: var(--navy); color: #fff; }
.next__card--hot h3 { color: #fff; }
.next__card--hot p { color: var(--on-navy-2); }
.next__card--hot .next__tag { color: #7FD6BF; }
.next__card--hot .more { color: var(--signal); }
.next__card--hot:hover { color: #fff; border-color: var(--accent); }
.card--hot { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow); }
.author { display: grid; grid-template-columns: 52px 1fr; gap: .9rem; align-items: start; margin-top: 2.2rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); min-width: 0; }
.author__avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em; }
.author__avatar--lg { width: 72px; height: 72px; font-size: 1.4rem; margin-bottom: .8rem; }
.author b { display: block; }
.author span { display: block; color: var(--ink-2); font-size: .9rem; margin: .15rem 0 .35rem; }
.author a { font-size: .9rem; font-weight: 600; }
.author-card h3 { margin-bottom: .2rem; }
.est-mail { border-top: 1px solid var(--line); padding-top: .9rem; display: grid; gap: .7rem; }
.est-mail .field label small { font-weight: 400; color: var(--ink-3); }
.est-mail__row { display: flex; gap: .5rem; }
.est-mail__row input { flex: 1; min-width: 0; }
@media (max-width: 480px) { .est-mail__row { flex-direction: column; } .est-mail__row .btn { width: 100%; } }
.check--hot { background: var(--signal-soft); border: 1px solid #F2D27A; border-radius: var(--radius); padding: .7rem .8rem; align-items: flex-start; }
.check--hot input { margin-top: .15rem; flex: none; }
.result__list li span:last-child { font-size: .8rem; }
.result__total .discount { color: var(--ink-3); font-weight: 500; }
.two-col--tool { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
@media (max-width: 900px) { .two-col--tool { grid-template-columns: minmax(0, 1fr); } }
.slidein { position: fixed; right: var(--gutter-r); bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 70; width: min(380px, calc(100% - var(--gutter) - var(--gutter-r))); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 1.2rem 1.3rem; transform: translateY(20px); opacity: 0; transition: transform .45s cubic-bezier(.2,.7,.2,1), opacity .45s; }
.slidein.is-open { transform: none; opacity: 1; }
.slidein[hidden] { display: none; }
.slidein h3 { font-size: 1.2rem; margin: .2rem 2rem .4rem 0; }
.slidein p { font-size: .9rem; color: var(--ink-2); margin: 0 0 .9rem; }
.slidein .eyebrow { margin-bottom: 0; }
.slidein__close { position: absolute; top: .7rem; right: .7rem; width: 34px; height: 34px; border: 0; background: var(--surface-2); border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--ink-2); }
.slidein__close svg { width: 18px; height: 18px; }
.slidein__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
@media (max-width: 760px) { .slidein { left: var(--gutter); right: var(--gutter-r); width: auto; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); } }
@media (prefers-reduced-motion: reduce) { .slidein { transition: none; } }
.prose ol { padding-left: 1.2rem; }
.prose ol li { margin-bottom: .45rem; }
.nav a { white-space: nowrap; padding: .5rem .6rem; }
.brand small { white-space: nowrap; }
.hero-media figcaption .mono { white-space: nowrap; }
@media (max-width: 1240px) { .header-cta .btn--ghost { display: none; } }
#estimateur .result__total { flex-wrap: wrap; }
#estimateur .result__total strong { font-size: 1.5rem; white-space: nowrap; }
#estimateur .check small { color: var(--ink-3); }
.author__avatar { object-fit: cover; }
.page-head--portrait .wrap { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); align-items: center; }
.page-media--portrait { aspect-ratio: 4 / 5; max-width: 420px; justify-self: end; }
.page-media--portrait img { aspect-ratio: 4 / 5; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .page-media--portrait { max-width: 320px; justify-self: start; } }
@media (max-width: 900px) { .page-head--portrait .wrap { grid-template-columns: minmax(0, 1fr); } .page-media--portrait { max-width: 360px; } }
