/* ============================================================
   DEVIS-MAISON.INFO — design tokens
   Palette ancrée matériaux/chantier : pierre chaude, pin (confiance,
   terrain), brique cuite (accent CTA). Un seul monde visuel (pas de
   dark mode auto) : c'est une page de conversion, la cohérence de
   marque prime sur la préférence système.
   ============================================================ */
:root {
    --ink: #1B2420;
    --ink-soft: #4A554D;
    --ink-faint: #7C867E;
    --paper: #F7F4EC;
    --paper-alt: #EFE9DA;
    --card: #FFFFFF;
    --line: #E1DACB;
    --line-strong: #CFC6AE;
    --pine: #1F5A44;
    --pine-deep: #143C2D;
    --pine-tint: #E7EFE9;
    --brick: #C1502E;
    --brick-deep: #9C3E22;
    --brick-tint: #FBEAE2;
    --sand: #C9A24B;
    --sand-tint: #F7EDD8;
    --success: #2F7A4F;
    --danger: #B3261E;

    --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
    --font-body: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
    --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

    --fs-h1: clamp(2.1rem, 1.55rem + 2.3vw, 3.6rem);
    --fs-h2: clamp(1.55rem, 1.3rem + 1.1vw, 2.35rem);
    --fs-h3: clamp(1.2rem, 1.08rem + .5vw, 1.5rem);
    --fs-lead: clamp(1.05rem, .98rem + .3vw, 1.25rem);

    --radius-s: 8px;
    --radius-m: 14px;
    --radius-l: 22px;
    --shadow-card: 0 1px 2px rgba(27, 36, 32, .06), 0 8px 24px -12px rgba(27, 36, 32, .18);
    --shadow-pop: 0 10px 30px -8px rgba(27, 36, 32, .28);
    --container: 1120px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img, svg {
    display: block;
    max-width: 100%;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.12;
    margin: 0;
    text-wrap: balance;
    color: var(--ink);
}

h1 {
    font-size: var(--fs-h1);
    font-weight: 700;
}

h2 {
    font-size: var(--fs-h2);
}

h3 {
    font-size: var(--fs-h3);
}

p {
    margin: 0;
}

a {
    color: inherit;
}

button {
    font-family: inherit;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 640px) {
    .container {
        padding: 0 32px;
    }
}

:focus-visible {
    outline: 2.5px solid var(--pine);
    outline-offset: 2px;
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .11em;
    text-transform: uppercase;
    color: var(--pine);
}

/* dimension-line divider — motif de plan d'architecte, réutilisé
   entre les sections comme séparateur de "calques" */
.dim-rule {
    --tick: 10px;
    height: var(--tick);
    border-top: 1.5px solid var(--line-strong);
    position: relative;
    margin: 0 auto;
}

.dim-rule::before, .dim-rule::after {
    content: "";
    position: absolute;
    top: 0;
    width: 1.5px;
    height: var(--tick);
    background: var(--line-strong);
}

.dim-rule::before {
    left: 0;
}

.dim-rule::after {
    right: 0;
}

/* ---------- buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    padding: 15px 26px;
    line-height: 1;
    white-space: nowrap;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: var(--brick);
    color: #fff;
    box-shadow: 0 10px 24px -10px rgba(193, 80, 46, .55);
}

.btn-primary:hover {
    background: var(--brick-deep);
    box-shadow: 0 14px 28px -10px rgba(193, 80, 46, .6);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--pine);
    border: 1.5px solid var(--line-strong);
}

.btn-ghost:hover {
    border-color: var(--pine);
    background: var(--pine-tint);
}

.btn-block {
    width: 100%;
}

.btn[disabled] {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
}

.btn svg {
    width: 18px;
    height: 18px;
    flex: none;
}

@media (max-width: 760px) {
    .btn {
        white-space: initial;
    }
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(247, 244, 236, .92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-mark {
    width: 34px;
    height: 34px;
    flex: none;
    border-radius: 9px;
    background: var(--pine);
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-mark svg {
    width: 19px;
    height: 19px;
    stroke: var(--paper);
}

.brand-word {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.15rem;
    letter-spacing: -.01em;
}

.brand-word b {
    color: var(--pine);
    font-weight: 700;
}

.header-phone {
    display: none;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: .92rem;
    color: var(--ink-soft);
    text-decoration: none;
}

.header-phone svg {
    width: 16px;
    height: 16px;
    stroke: var(--pine);
}

@media (min-width: 760px) {
    .header-phone {
        display: inline-flex;
    }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.btn-header {
    padding: 11px 20px;
    font-size: .94rem;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    padding: 44px 0 56px;
}

.hero-grid {
    display: grid;
    gap: 38px;
}

@media (min-width: 960px) {
    .hero-grid {
        grid-template-columns: 1.15fr 0.85fr;
        align-items: center;
        gap: 48px;
    }
}

.hero-copy {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.hero-copy .eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
}

.hero-copy .eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brick);
}

.hero-copy h1 {
    max-width: 15ch;
}

.hero-copy h1 em {
    font-style: italic;
    color: var(--pine);
}

.hero-lead {
    font-size: var(--fs-lead);
    color: var(--ink-soft);
    max-width: 46ch;
}

.hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 6px;
}

.hero-note {
    font-family: var(--font-mono);
    font-size: .8rem;
    color: var(--ink-faint);
}

.trust-row {
    display: grid;
    grid-template-columns: 0.5fr auto 0.5fr;
    gap: 20px;
    margin-top: 20px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}
@media (max-width: 1100px) {
    .trust-row {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 960px) {
    .trust-row {
        grid-template-columns: 1fr 1fr 1fr;
    }
}
@media (max-width: 760px) {
    .trust-row {
        grid-template-columns: 1fr;
    }
}

.trust-chip {
    display: flex;
    align-items: flex-start;
    gap: 9px;
}

.trust-chip svg {
    width: 19px;
    height: 19px;
    flex: none;
    stroke: var(--pine);
    margin-top: 1px;
}

.trust-chip span {
    font-size: .86rem;
    color: var(--ink-soft);
    font-weight: 500;
}

.trust-chip b {
    display: block;
    font-family: var(--font-mono);
    font-size: 1.02rem;
    color: var(--ink);
    font-weight: 600;
}

/* hero elevation drawing */
.hero-art {
    position: relative;
}

.elevation-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-l);
    box-shadow: var(--shadow-card);
    padding: 26px 22px 20px;
    position: relative;
}

.elevation-card .cap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.elevation-card .cap span {
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

.elevation-card .cap .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
}

.house-svg {
    width: 100%;
    height: auto;
}

.elevation-foot {
    display: flex;
    justify-content: space-between;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed var(--line-strong);
}

.elevation-foot div {
    font-family: var(--font-mono);
    font-size: .78rem;
    color: var(--ink-faint);
}

.elevation-foot b {
    display: block;
    color: var(--ink);
    font-size: 1rem;
    font-weight: 600;
}

.floating-badge {
    position: absolute;
    right: -10px;
    top: -16px;
    background: var(--pine);
    color: #fff;
    border-radius: var(--radius-m);
    padding: 10px 16px;
    box-shadow: var(--shadow-pop);
    font-family: var(--font-mono);
    font-size: .78rem;
    line-height: 1.3;
    transform: rotate(2deg);
    z-index: 1;
}

.floating-badge b {
    display: block;
    font-size: 1.15rem;
    font-family: var(--font-display);
    font-weight: 700;
}

/* ============================================================
   SECTION SHELL
   ============================================================ */
.section {
    padding: 64px 0;
}

.section-alt {
    background: var(--paper-alt);
}

.section-head {
    max-width: 640px;
    margin: 0 auto 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.section-head .eyebrow {
}

.section-head p {
    color: var(--ink-soft);
    font-size: var(--fs-lead);
}

/* ---------- legal pages (mentions légales, confidentialité) ---------- */
.legal-page h1 {
    margin-bottom: 0;
}

.legal {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.legal h2 {
    font-size: var(--fs-h3);
    margin-top: 20px;
}

.legal p, .legal li {
    color: var(--ink-soft);
    line-height: 1.7;
}

.legal ul {
    margin: 0;
    padding-left: 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legal a {
    color: var(--pine);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-updated {
    color: var(--ink-faint);
    font-size: .9rem;
    font-family: var(--font-mono);
    margin-top: 12px;
}

/* ---------- comment ça marche ---------- */
.steps3 {
    display: grid;
    gap: 20px;
}

@media (min-width: 760px) {
    .steps3 {
        grid-template-columns:repeat(3, 1fr);
        gap: 26px;
    }
}

.step3-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-l);
    padding: 26px 22px;
    box-shadow: var(--shadow-card);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.step3-num {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: .85rem;
    color: var(--pine);
    border: 1.5px solid var(--pine);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step3-card h3 {
    font-size: 1.12rem;
}

.step3-card p {
    color: var(--ink-soft);
    font-size: .94rem;
}

.step3-card:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -14px;
    top: 50%;
    width: 20px;
    height: 1.5px;
    background: var(--line-strong);
    display: none;
}

@media (min-width: 760px) {
    .step3-card:not(:last-child)::after {
        display: block;
    }
}

/* ---------- estimateur teaser ---------- */
.estimator {
    background: var(--pine);
    color: var(--paper);
    border-radius: var(--radius-l);
    padding: 34px 24px;
    display: grid;
    gap: 30px;
    box-shadow: var(--shadow-pop);
}

@media (min-width: 860px) {
    .estimator {
        grid-template-columns:1fr 1fr;
        padding: 42px;
        align-items: center;
    }
}

.estimator h2 {
    color: #fff;
}

.estimator .eyebrow {
    color: var(--sand);
}

.estimator-copy p {
    color: rgba(247, 244, 236, .82);
    font-size: var(--fs-lead);
    margin-top: 12px;
    max-width: 42ch;
}

.estimator-form {
    background: rgba(247, 244, 236, .06);
    border: 1px solid rgba(247, 244, 236, .22);
    border-radius: var(--radius-m);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.field-label {
    display: flex;
    justify-content: space-between;
    font-size: .86rem;
    font-weight: 600;
    color: var(--paper);
}

.field-label output {
    font-family: var(--font-mono);
    color: var(--sand);
}

input[type=range] {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: rgba(247, 244, 236, .28);
    appearance: none;
    -webkit-appearance: none;
    outline: none;
}

input[type=range]::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--sand);
    border: 3px solid var(--pine-deep);
    cursor: pointer;
}

input[type=range]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--sand);
    border: 3px solid var(--pine-deep);
    cursor: pointer;
}

#funnelStepContent .live-estimate {
    margin-top: 20px;
}
#fSurface {
    background-color: white;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    border: 1.5px solid rgba(247, 244, 236, .35);
    background: transparent;
    color: var(--paper);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: .84rem;
    font-weight: 500;
    cursor: pointer;
    transition: all .15s ease;
}

.chip.is-active {
    background: var(--sand);
    border-color: var(--sand);
    color: var(--pine-deep);
    font-weight: 600;
}

.estimate-result {
    background: var(--paper);
    color: var(--ink);
    border-radius: var(--radius-m);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.estimate-result .lbl {
    font-family: var(--font-mono);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--ink-faint);
}

.estimate-result .val {
    font-family: var(--font-mono);
    font-size: 1.55rem;
    font-weight: 600;
    color: var(--pine);
    font-variant-numeric: tabular-nums;
}

.estimate-result .sub {
    font-size: .78rem;
    color: var(--ink-faint);
}

/* ---------- garanties ---------- */
.guarantee-grid {
    display: grid;
    gap: 18px;
    grid-template-columns:repeat(2, 1fr);
}

@media (min-width: 760px) {
    .guarantee-grid {
        grid-template-columns:repeat(4, 1fr);
    }
}

.guarantee-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.guarantee-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--pine-tint);
    display: flex;
    align-items: center;
    justify-content: center;
}

.guarantee-icon svg {
    width: 23px;
    height: 23px;
    stroke: var(--pine);
}

.guarantee-card h3 {
    font-size: 1rem;
}

.guarantee-card p {
    color: var(--ink-soft);
    font-size: .88rem;
}

/* ---------- types de construction ---------- */
.type-grid {
    display: grid;
    gap: 16px;
    grid-template-columns:repeat(2, 1fr);
}

@media (min-width: 960px) {
    .type-grid {
        grid-template-columns:repeat(3, 1fr);
    }
}

.type-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    padding: 18px 14px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-card);
}

.type-card .ic {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: var(--brick-tint);
    display: flex;
    align-items: center;
    justify-content: center;
}

.type-card .ic svg {
    width: 22px;
    height: 22px;
    stroke: var(--brick);
}

.type-card span {
    font-size: .86rem;
    font-weight: 600;
}

/* ---------- avis ---------- */
.review-grid {
    display: grid;
    gap: 18px;
}

@media (min-width: 760px) {
    .review-grid {
        grid-template-columns:repeat(3, 1fr);
    }
}

.review-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-l);
    padding: 24px 22px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.stars {
    display: flex;
    gap: 3px;
}

.stars svg {
    width: 16px;
    height: 16px;
    fill: var(--sand);
    stroke: none;
}

.review-card p.quote {
    color: var(--ink);
    font-size: .96rem;
    font-style: italic;
}

.review-who {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}

.review-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--pine-tint);
    color: var(--pine);
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: .85rem;
}

.review-who span {
    font-size: .82rem;
    color: var(--ink-faint);
    display: block;
}

.review-who b {
    font-size: .92rem;
}

/* ---------- FAQ ---------- */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 760px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    overflow: hidden;
}

.faq-item summary {
    padding: 18px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: .98rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary .plus {
    flex: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1.5px solid var(--line-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pine);
    font-size: 1rem;
    transition: transform .2s ease;
}

.faq-item[open] summary .plus {
    transform: rotate(45deg);
}

.faq-item .a {
    padding: 0 20px 20px;
    color: var(--ink-soft);
    font-size: .92rem;
    max-width: 65ch;
}

/* ---------- final CTA band ---------- */
.final-cta {
    background: var(--ink);
    color: var(--paper);
    border-radius: var(--radius-l);
    padding: 44px 28px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.final-cta h2 {
    color: #fff;
}

.final-cta p {
    color: rgba(247, 244, 236, .75);
    max-width: 46ch;
    font-size: var(--fs-lead);
}

/* ---------- footer ---------- */
.site-footer {
    padding: 40px 0 100px;
    border-top: 1px solid var(--line);
}

@media (min-width: 640px) {
    .site-footer {
        padding-bottom: 40px;
    }
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: .85rem;
    color: var(--ink-soft);
}

.footer-links a {
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--pine);
}

.footer-fine {
    font-size: .78rem;
    color: var(--ink-faint);
    margin-top: 22px;
    max-width: 70ch;
}

/* ---------- mobile sticky CTA bar ---------- */
.sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    background: var(--card);
    border-top: 1px solid var(--line);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    box-shadow: 0 -8px 24px -12px rgba(27, 36, 32, .25);
    transform: translateY(0);
    transition: transform .25s ease;
}

.sticky-cta.is-hidden {
    transform: translateY(110%);
}

@media (min-width: 760px) {
    .sticky-cta {
        display: none;
    }
}

/* ============================================================
   FUNNEL OVERLAY
   ============================================================ */
.funnel-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: var(--paper);
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    opacity: 0;
    transition: transform .38s cubic-bezier(.22, .68, .32, 1), opacity .3s ease;
}

.funnel-overlay.is-open {
    transform: translateY(0);
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .funnel-overlay {
        transition: opacity .15s ease;
    }
}

.funnel-top {
    flex: none;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}

.funnel-top-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 60px;
    padding: 0 18px;
}

.funnel-back, .funnel-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--ink-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
}

.funnel-back:hover, .funnel-close:hover {
    background: var(--paper-alt);
    color: var(--ink);
}

.funnel-back svg, .funnel-close svg {
    width: 20px;
    height: 20px;
}

.funnel-step-label {
    font-family: var(--font-mono);
    font-size: .78rem;
    color: var(--ink-faint);
    letter-spacing: .04em;
}

.funnel-progress-track {
    height: 4px;
    background: var(--line);
}

.funnel-progress-fill {
    height: 100%;
    background: var(--brick);
    width: 0%;
    transition: width .35s ease;
}

.funnel-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.funnel-body-inner {
    max-width: 640px;
    margin: 0 auto;
    padding: 36px 20px 140px;
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.funnel-q {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.funnel-q .eyebrow {
    color: var(--brick);
}

.funnel-q h2 {
    font-size: var(--fs-h2);
}

.hint {
    color: var(--ink-soft);
    font-size: .94rem;
}

.opt-grid {
    display: grid;
    gap: 12px;
}

.opt-grid.cols-2 {
    grid-template-columns:repeat(2, 1fr);
}

@media (min-width: 520px) {
    .opt-grid.cols-3 {
        grid-template-columns:repeat(3, 1fr);
    }
}

.opt-card {
    background: var(--card);
    border: 1.5px solid var(--line);
    border-radius: var(--radius-m);
    padding: 16px 16px;
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-body);
    font-size: .98rem;
    font-weight: 600;
    color: var(--ink);
    transition: border-color .15s ease, background-color .15s ease, transform .1s ease;
}

.opt-card .ic {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--pine-tint);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.opt-card .ic svg {
    width: 18px;
    height: 18px;
    stroke: var(--pine);
}

.opt-card:hover {
    border-color: var(--pine);
}

.opt-card.is-selected {
    border-color: var(--brick);
    background: var(--brick-tint);
}

.opt-card.is-selected .ic {
    background: var(--brick);
}

.opt-card.is-selected .ic svg {
    stroke: #fff;
}

.opt-card .check {
    margin-left: auto;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid var(--line-strong);
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.opt-card.is-selected .check {
    background: var(--brick);
    border-color: var(--brick);
    color: #fff;
}

.opt-card.is-selected .check svg {
    width: 12px;
    height: 12px;
    stroke: #fff;
}

.opt-sub {
    display: block;
    font-weight: 400;
    font-size: .8rem;
    color: var(--ink-faint);
    margin-top: 2px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.field label {
    font-size: .86rem;
    font-weight: 600;
    color: var(--ink);
}

.field .req {
    color: var(--brick);
}

.field input[type=text], .field input[type=email], .field input[type=tel], .field select {
    width: 100%;
    border: 1.5px solid var(--line-strong);
    border-radius: var(--radius-s);
    padding: 13px 14px;
    font-size: 1rem;
    font-family: var(--font-body);
    background: var(--card);
    color: var(--ink);
}

.field input:focus, .field select:focus {
    border-color: var(--pine);
}

.field-error {
    font-size: .8rem;
    color: var(--danger);
    display: none;
}

.field.has-error input, .field.has-error select {
    border-color: var(--danger);
}

.field.has-error .field-error {
    display: block;
}

/* ---------- Tom Select (recherche de ville, étape localisation) ---------- */
.ts-wrapper {
    font-family: var(--font-body);
    font-size: 1rem;
}

.ts-control, .ts-control input {
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.4;
}

.ts-wrapper .ts-control {
    background: var(--card);
    border: 1.5px solid var(--line-strong);
    border-radius: var(--radius-s);
    min-height: 48px;
    padding: 8px 10px;
}

.ts-wrapper.focus .ts-control {
    border-color: var(--pine);
}

.ts-wrapper.disabled .ts-control {
    background: var(--paper-alt);
    opacity: .65;
}

.ts-control > input::placeholder {
    color: var(--ink-faint);
}

.ts-wrapper.multi .ts-control > div.item {
    background: var(--pine-tint);
    border: 1.5px solid var(--pine);
    border-radius: 999px;
    color: var(--pine-deep);
    font-size: .85rem;
    font-weight: 600;
    margin: 2px 4px 2px 0;
    padding: 4px 6px 4px 12px;
}

.ts-wrapper.plugin-remove_button .item .remove {
    border-left: none;
    color: var(--pine-deep);
    margin-left: 4px;
    padding: 0 6px;
}

.ts-wrapper.plugin-remove_button .item .remove:hover {
    background: rgba(31, 90, 68, .15);
    border-radius: 999px;
}

.ts-dropdown {
    border: 1.5px solid var(--line-strong);
    border-radius: var(--radius-s);
    box-shadow: var(--shadow-card);
    margin-top: 4px;
}

.ts-dropdown .option, .ts-dropdown .create, .ts-dropdown .no-results {
    font-size: .94rem;
    padding: 10px 12px;
}

.ts-dropdown .active {
    background: var(--pine-tint);
    color: var(--pine-deep);
}

.ts-dropdown .create {
    color: var(--pine);
}

.ts-dropdown .no-results {
    color: var(--ink-faint);
}

.text-danger {
    color: var(--danger);
}

.field-row {
    display: grid;
    gap: 14px;
}

@media (min-width: 520px) {
    .field-row.two {
        grid-template-columns:1fr 1fr;
    }
}

.stepper {
    display: flex;
    align-items: center;
    gap: 14px;
}

.stepper button {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid var(--line-strong);
    background: var(--card);
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--pine);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stepper button:hover {
    border-color: var(--pine);
}

.stepper output {
    font-family: var(--font-mono);
    font-size: 1.15rem;
    font-weight: 600;
    min-width: 2ch;
    text-align: center;
}

.live-estimate {
    background: var(--pine-tint);
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.live-estimate .lbl {
    font-family: var(--font-mono);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--pine);
}

.live-estimate .val {
    font-family: var(--font-mono);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--pine-deep);
    font-variant-numeric: tabular-nums;
}

.live-estimate .sub {
    font-size: .78rem;
    color: var(--ink-soft);
}

.consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: .83rem;
    color: var(--ink-soft);
}

.consent input {
    margin-top: 3px;
    flex: none;
    width: 17px;
    height: 17px;
    accent-color: var(--pine);
}

.consent a {
    color: var(--pine);
    text-decoration: underline;
}

.funnel-footer {
    position: sticky;
    bottom: 0;
    background: linear-gradient(to top, var(--paper) 60%, transparent);
    padding: 22px 20px calc(18px + env(safe-area-inset-bottom));
}

.funnel-footer-inner {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.funnel-trust {
    display: flex;
    justify-content: center;
    gap: 16px;
    font-size: .76rem;
    color: var(--ink-faint);
    font-family: var(--font-mono);
}

.form-msg {
    font-size: .85rem;
    color: var(--danger);
    display: none;
}

.form-msg.is-visible {
    display: block;
}

/* confirmation screen */
.confirm-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
    padding-top: 24px;
}

.confirm-icon {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: var(--pine);
    display: flex;
    align-items: center;
    justify-content: center;
}

.confirm-icon svg {
    width: 36px;
    height: 36px;
    stroke: #fff;
}

.confirm-list {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 420px;
    width: 100%;
    margin-top: 8px;
}

.confirm-list li {
    display: flex;
    gap: 10px;
    font-size: .92rem;
    color: var(--ink-soft);
    list-style: none;
}

.confirm-list b {
    color: var(--pine);
    font-family: var(--font-mono);
    flex: none;
}

.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}
