:root {
    --ink: #17211d;
    --muted: #5d675f;
    --paper: #f7f3ea;
    --paper-strong: #fffaf0;
    --line: #d8cfbd;
    --walnut: #2f241d;
    --forest: #173f36;
    --forest-strong: #0f3029;
    --moss: #5f7d3d;
    --brass: #c38d34;
    --honey: #f1b84b;
    --honey-soft: #fff1ce;
    --cream: #fff7e8;
    --mint: #e4f1e7;
    --ice: #e9f6f8;
    --clay: #b95e42;
    --sky: #dce9ed;
    --rosewood: #8b3f2f;
    --shadow: 0 18px 50px rgba(23, 33, 29, .12);
    --shadow-strong: 0 24px 70px rgba(47, 36, 29, .16);
    --radius: 8px;
    --max: 1160px;
}

* {
    box-sizing: border-box;
}

img,
svg,
iframe,
object,
embed {
    max-width: 100%;
}

html {
    scroll-behavior: smooth;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    max-width: 100%;
    overflow-x: hidden;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 8%, rgba(241, 184, 75, .18), transparent 28rem),
        linear-gradient(180deg, var(--cream), var(--paper));
    font-family: "Avenir Next", "Segoe UI", Verdana, sans-serif;
    line-height: 1.55;
}

a {
    color: inherit;
    text-decoration-thickness: .08em;
    text-underline-offset: .22em;
}

a:hover {
    color: var(--clay);
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 20;
    background: var(--paper-strong);
    padding: .7rem 1rem;
    border: 1px solid var(--line);
}

.skip-link:focus {
    top: 1rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 247, 232, .94);
    border-bottom: 1px solid rgba(216, 207, 189, .8);
    backdrop-filter: blur(14px);
}

.header-inner {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-mark {
    width: 38px;
    height: 38px;
    border: 4px solid var(--forest);
    border-radius: 2px;
    box-shadow: inset 14px 0 0 rgba(195, 141, 52, .55);
}

.brand strong {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.05rem;
}

.brand small {
    display: block;
    color: var(--muted);
    font-size: .78rem;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: .95rem;
}

.main-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: .35rem .15rem;
    text-decoration: none;
}

.nav-group {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-sub {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 20;
    min-width: 190px;
    display: none;
    padding: 8px;
    border: 1px solid rgba(216, 207, 189, .9);
    border-radius: var(--radius);
    background: rgba(255, 250, 240, .98);
    box-shadow: var(--shadow);
}

.nav-group:hover .nav-sub,
.nav-group:focus-within .nav-sub {
    display: grid;
}

.nav-sub a {
    min-height: 34px;
    padding: .4rem .55rem;
    border-radius: 6px;
}

.nav-sub a:hover {
    color: var(--forest);
    background: var(--honey-soft);
}

.nav-cta,
.button,
.hero-finder button,
.project-form button {
    border: 0;
    border-radius: var(--radius);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    max-width: 100%;
    padding: .78rem 1rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
}

.nav-cta,
.button-primary,
.hero-finder button,
.project-form button {
    color: #fff;
    background: var(--forest);
    box-shadow: 0 10px 24px rgba(23, 63, 54, .24);
}

.button-warm {
    color: var(--ink);
    background: linear-gradient(135deg, var(--honey), #ffd985);
    box-shadow: 0 14px 30px rgba(195, 141, 52, .28);
}

.button-secondary {
    color: var(--forest);
    background: var(--sky);
    border: 1px solid rgba(23, 63, 54, .16);
}

.button:hover,
.nav-cta:hover,
.hero-finder button:hover,
.project-form button:hover {
    transform: translateY(-1px);
}

.breadcrumbs {
    width: min(var(--max), calc(100% - 32px));
    margin: 22px auto 0;
    color: var(--muted);
    font-size: .88rem;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.breadcrumbs li:not(:last-child)::after {
    content: "/";
    margin-left: 8px;
    color: #9d968a;
}

.hero {
    position: relative;
    min-height: 58vh;
    display: grid;
    align-items: center;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(23, 33, 29, .92), rgba(23, 33, 29, .54)),
        url("../img/menuiserie-texture.svg") center / cover;
    overflow: hidden;
}

.hero--bright {
    color: var(--ink);
    background:
        linear-gradient(115deg, rgba(255, 247, 232, .98) 0%, rgba(255, 241, 206, .9) 47%, rgba(228, 241, 231, .92) 100%),
        url("../img/menuiserie-texture.svg") center / cover;
}

.hero--compact {
    min-height: 330px;
}

.hero-content {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    padding: 72px 0;
}

.hero-grid {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
    gap: 36px;
    align-items: start;
    padding: 56px 0;
}

.hero-grid--devis,
.hero-grid--intent {
    padding: 46px 0;
}

.hero-grid--devis,
.hero-grid--intent {
    grid-template-columns: minmax(0, .95fr) minmax(360px, 430px);
    align-items: start;
}

.hero-grid--single {
    grid-template-columns: minmax(0, 760px);
    justify-content: center;
    text-align: center;
}

.hero-grid--single .hero-copy,
.hero-grid--single .hero-lead {
    margin-left: auto;
    margin-right: auto;
}

.hero-grid--single .hero-actions,
.hero-grid--single .trust-badges {
    justify-content: center;
}

.hero-copy {
    max-width: 760px;
}

.hero-panel {
    position: relative;
    padding: 28px;
    border: 1px solid rgba(195, 141, 52, .35);
    border-radius: var(--radius);
    background: rgba(255, 250, 240, .95);
    box-shadow: var(--shadow-strong);
}

.hero-panel::before {
    content: "";
    position: absolute;
    inset: 10px;
    pointer-events: none;
    border: 1px dashed rgba(195, 141, 52, .34);
    border-radius: 6px;
}

.hero-panel > * {
    position: relative;
}

.hero-panel h2 {
    margin: 0 0 18px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.55rem, 2.5vw, 2rem);
    line-height: 1.05;
}

.hero-panel--small {
    align-self: stretch;
}

.hero-widget,
.quote-column {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    justify-self: end;
}

.hero-widget .quote-widget,
.quote-column .quote-widget {
    width: 100%;
    margin: 0;
    padding: 16px;
    border: 1px solid rgba(95, 125, 61, .34);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(255, 250, 240, .98)),
        var(--paper-strong);
    box-shadow: 0 18px 48px rgba(23, 63, 54, .13);
}

.hero-widget .quote-widget h2,
.quote-column .quote-widget h2 {
    font-size: clamp(1.15rem, 1.7vw, 1.45rem);
    line-height: 1.12;
}

.hero-widget .quote-widget p,
.quote-column .quote-widget p {
    margin-top: .4rem;
}

.quote-widget-head {
    margin-bottom: 12px;
    padding: 0 2px 11px;
    border-bottom: 1px solid rgba(216, 207, 189, .7);
}

.quote-widget-head .eyebrow {
    margin-bottom: .35rem;
}

.quote-widget-head p:not(.eyebrow) {
    margin: .35rem 0 0;
    color: var(--muted);
    font-size: .92rem;
    font-weight: 700;
}

.viteundevis-widget {
    max-width: 100%;
    padding: 8px;
    border: 1px solid rgba(216, 207, 189, .72);
    border-radius: 6px;
    background: #fff;
}

.hero-widget .quote-fallback,
.quote-column .quote-fallback {
    margin-top: 10px;
}

.hero-widget .quote-widget-action,
.quote-column .quote-widget-action {
    width: 100%;
    margin-top: 0;
}

.eyebrow {
    margin: 0 0 .6rem;
    color: var(--brass);
    font-size: .76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    padding: .42rem .68rem;
    border: 1px solid rgba(195, 141, 52, .38);
    border-radius: 999px;
    background: rgba(255, 241, 206, .82);
}

.hero h1,
.section-heading h2,
.split h2,
.content-panel h2,
.quote-widget h2,
.legal-page h1,
.not-found h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.05;
    font-weight: 700;
    max-width: 100%;
    overflow-wrap: break-word;
}

.hero h1 {
    max-width: 780px;
    font-size: clamp(2.45rem, 8vw, 5.9rem);
}

.hero--home h1 {
    font-size: clamp(2.55rem, 5.3vw, 5.15rem);
}

.hero-lead {
    max-width: 740px;
    margin: 1.2rem 0 0;
    color: rgba(255, 255, 255, .88);
    font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.hero--bright .hero-lead {
    color: #37443e;
}

.hero-note {
    max-width: 660px;
    margin: 18px 0 0;
    color: var(--muted);
    font-weight: 600;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero-finder,
.project-form,
.mini-project-form,
.devis-selector {
    display: grid;
    gap: 14px;
}

.devis-selector {
    gap: 12px;
}

.devis-selector {
    grid-template-columns: 1fr;
}

.selector-band {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 24px;
    align-items: end;
    padding-top: 0;
}

.selector-copy h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.45rem, 2.2vw, 2rem);
    line-height: 1.08;
}

.selector-copy p:not(.eyebrow) {
    margin: .75rem 0 0;
    color: var(--muted);
}

.devis-selector--inline {
    grid-template-columns: minmax(150px, 1fr) auto;
    align-items: end;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 250, 240, .84);
}

.devis-selector--inline label {
    grid-column: 1 / -1;
}

.category-switcher .devis-selector--inline {
    padding: 0;
    border: none;
    background: transparent;
}

.category-switcher {
    margin-top: 12px;
    padding: 14px;
    border: 1px solid rgba(216, 207, 189, .9);
    border-radius: var(--radius);
    background: rgba(255, 250, 240, .78);
}

.category-switcher p {
    margin: 0;
    color: var(--muted);
    font-size: .9rem;
}

.category-switcher .eyebrow {
    margin-bottom: .45rem;
}

.category-switcher .devis-selector {
    margin-top: 10px;
}

.helper-note {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: .92rem;
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.trust-badges li {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: .45rem .68rem;
    border: 1px solid rgba(23, 63, 54, .12);
    border-radius: 999px;
    background: rgba(255, 250, 240, .82);
    color: #31443c;
    font-weight: 700;
    font-size: .9rem;
}

.hero-finder {
    max-width: 860px;
    grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
    margin-top: 34px;
    padding: 14px;
    background: rgba(255, 250, 240, .12);
    border: 1px solid rgba(255, 250, 240, .24);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
}

label {
    display: grid;
    gap: 6px;
    font-size: .88rem;
    font-weight: 700;
}

select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper-strong);
    color: var(--ink);
    font: inherit;
    min-height: 46px;
    padding: .72rem .78rem;
}

textarea {
    resize: vertical;
}

.section-shell {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    padding: 64px 0;
}

.section-intro {
    padding-bottom: 36px;
}

.surface-band {
    width: 100%;
    max-width: none;
    padding-left: max(16px, calc((100% - var(--max)) / 2));
    padding-right: max(16px, calc((100% - var(--max)) / 2));
    background: #ebe3d4;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.surface-band--warm {
    background: linear-gradient(135deg, var(--honey-soft), #fffaf0);
}

.surface-band--cool {
    background: linear-gradient(135deg, var(--ice), var(--mint));
}

.split,
.two-columns,
.quote-layout,
.detail-grid {
    display: grid;
    gap: 28px;
}

.split,
.two-columns,
.quote-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.detail-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.split p {
    margin: 0;
    color: var(--muted);
    font-size: 1.08rem;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.section-heading h2,
.split h2 {
    font-size: clamp(1.8rem, 3vw, 3rem);
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.cards--compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.content-panel,
.quote-widget,
.project-form,
.check-grid > div,
.faq details,
.steps article {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper-strong);
    box-shadow: var(--shadow);
}

.card {
    position: relative;
    padding: 22px;
}

.visual-cards .card,
.region-cards .card {
    background: linear-gradient(180deg, #fffaf0, #fff4df);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.visual-cards .card:hover,
.region-cards .card:hover {
    transform: translateY(-3px);
    border-color: rgba(195, 141, 52, .48);
    box-shadow: 0 22px 55px rgba(47, 36, 29, .14);
}

.card-icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 14px;
    border-radius: var(--radius);
    background: var(--honey-soft);
    font-size: 1.35rem;
}

.card h3 {
    margin: 0 0 .7rem;
    font-size: 1.24rem;
}

.card p:not(.eyebrow) {
    margin: 0;
    color: var(--muted);
}

.content-panel,
.quote-widget,
.project-form {
    padding: 28px;
}

.content-panel h2,
.quote-widget h2 {
    font-size: clamp(1.55rem, 2.6vw, 2.35rem);
}

.content-panel p,
.quote-widget p {
    color: var(--muted);
}

.link-list,
.pill-list,
.strong-list,
.check-list,
.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.link-list {
    display: grid;
    gap: 10px;
}

.link-list a {
    display: block;
    padding: .76rem .9rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 250, 240, .72);
    text-decoration: none;
}

.strong-list a {
    font-weight: 800;
}

.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pill-list a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: .55rem .82rem;
    border-radius: 999px;
    background: var(--paper-strong);
    border: 1px solid var(--line);
    text-decoration: none;
}

.check-list {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.check-list li {
    position: relative;
    padding-left: 28px;
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .55em;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    background: var(--moss);
}

.quote-widget {
    width: min(var(--max), calc(100% - 32px));
    margin: 18px auto 64px;
    background: linear-gradient(135deg, var(--paper-strong), #eff8ef);
}

.quote-widget--local {
    border-color: rgba(185, 94, 66, .38);
}

.quote-widget--fallback {
    border-color: rgba(95, 125, 61, .45);
}

.quote-widget--official {
    border-color: rgba(95, 125, 61, .45);
    box-shadow: 0 22px 64px rgba(23, 63, 54, .14);
}

.quote-widget-action {
    margin-top: 22px;
}

.quote-fallback {
    margin: 18px 0 0;
}

.devis-main {
    padding-top: 34px;
}

.devis-main > .quote-widget {
    width: 100%;
    margin: 0;
}

.quote-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 20px 0 0;
}

.quote-meta div {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.quote-meta dt {
    color: var(--muted);
    font-size: .82rem;
}

.quote-meta dd {
    margin: 0;
    font-weight: 800;
}

.project-form {
    align-self: start;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-full,
.form-note,
.project-form button {
    grid-column: 1 / -1;
}

.form-note {
    margin: 0;
    color: var(--muted);
    font-size: .92rem;
}

.check-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.check-grid > div {
    padding: 22px;
}

.check-grid h3 {
    margin: 0 0 .6rem;
}

.check-grid p {
    margin: 0;
    color: var(--muted);
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.steps article {
    padding: 24px;
}

.steps span {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: var(--forest);
    color: #fff;
    font-weight: 800;
}

.steps h3 {
    margin: 0 0 .65rem;
}

.steps p,
.compact-checks {
    margin: 0;
    color: var(--muted);
}

.compact-checks {
    display: grid;
    gap: 10px;
    padding: 0;
    list-style: none;
}

.compact-checks li {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 250, 240, .74);
}

.city-strip {
    margin-top: 24px;
}

.faq details {
    padding: 18px 22px;
    margin-bottom: 12px;
}

.faq summary {
    cursor: pointer;
    font-weight: 800;
}

.final-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 34px;
    margin-bottom: 58px;
    border: 1px solid rgba(195, 141, 52, .38);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(255, 241, 206, .96), rgba(228, 241, 231, .86)),
        url("../img/menuiserie-texture.svg") center / cover;
    box-shadow: var(--shadow);
}

.final-cta h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    line-height: 1.06;
}

.final-cta p:not(.eyebrow) {
    max-width: 680px;
    margin: .85rem 0 0;
    color: var(--muted);
}

.narrow {
    max-width: 820px;
}

.legal-page p,
.not-found p {
    color: var(--muted);
}

.site-footer {
    color: #f5efe2;
    background: var(--walnut);
    padding: 46px 0 82px;
}

.footer-grid {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr repeat(3, minmax(0, .8fr));
    gap: 28px;
}

.footer-title {
    margin: 0 0 12px;
    color: #f1d79c;
    font-weight: 800;
}

.site-footer p {
    color: rgba(255, 250, 240, .75);
}

.site-footer li + li {
    margin-top: 8px;
}

.site-footer a {
    color: #fffaf0;
}

.footer-network {
    width: min(var(--max), calc(100% - 32px));
    margin: 30px auto 0;
    padding-top: 24px;
    display: grid;
    grid-template-columns: minmax(220px, .68fr) minmax(0, 1.32fr);
    gap: 24px;
    border-top: 1px solid rgba(255, 250, 240, .16);
}

.footer-network--related {
    margin-top: 22px;
}

.footer-network__intro h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.08rem, 1.7vw, 1.35rem);
    line-height: 1.14;
    color: #fffaf0;
}

.footer-network__intro p:not(.footer-kicker) {
    max-width: 440px;
    margin: .5rem 0 0;
    color: rgba(255, 250, 240, .72);
}

.footer-kicker {
    margin: 0 0 .42rem;
    color: #f1d79c;
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.footer-network__links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-network__links li + li {
    margin-top: 0;
}

.footer-network__links a {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: .62rem .72rem;
    border: 1px solid rgba(255, 250, 240, .14);
    border-radius: 8px;
    background: rgba(255, 250, 240, .06);
    color: #fffaf0;
    font-size: .92rem;
    font-weight: 760;
    line-height: 1.2;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.footer-network__links a:hover {
    border-color: rgba(241, 215, 156, .4);
    background: rgba(255, 250, 240, .11);
}

.mobile-sticky-cta {
    display: none;
}

@media (min-width: 1260px) {
    .hero-grid {
        width: min(1440px, calc(100% - 32px));
        grid-template-columns: minmax(420px, 1fr) minmax(760px, 800px);
        gap: 32px;
    }

    .hero-grid--devis,
    .hero-grid--intent {
        grid-template-columns: minmax(420px, 1fr) minmax(760px, 800px);
    }

    .hero--home h1 {
        font-size: clamp(2.6rem, 4.1vw, 4.35rem);
    }

    .hero--devis h1,
    .hero--intent h1 {
        font-size: clamp(2.35rem, 3.75vw, 3.65rem);
    }

    .hero-widget,
    .quote-column {
        max-width: 800px;
    }

    .hero-widget .quote-widget,
    .quote-column .quote-widget {
        padding: 18px;
    }

    .viteundevis-widget iframe,
    .viteundevis-widget table,
    .viteundevis-widget form,
    .viteundevis-widget button,
    .viteundevis-widget input,
    .viteundevis-widget select,
    .viteundevis-widget a {
        max-width: 100%;
    }

    .viteundevis-widget button,
    .viteundevis-widget input[type="button"],
    .viteundevis-widget input[type="submit"],
    .viteundevis-widget a {
        white-space: normal;
        overflow-wrap: anywhere;
    }
}

@media (min-width: 981px) and (max-width: 1259px) {
    .hero-grid,
    .hero-grid--devis,
    .hero-grid--intent {
        width: min(1180px, calc(100% - 32px));
        grid-template-columns: minmax(0, .82fr) minmax(560px, 620px);
        gap: 28px;
    }

    .hero--home h1 {
        font-size: clamp(2.45rem, 4.2vw, 3.55rem);
    }

    .hero--devis h1,
    .hero--intent h1 {
        font-size: clamp(2.2rem, 3.8vw, 3.15rem);
    }

    .hero-widget,
    .quote-column {
        max-width: 620px;
    }
}

@media (max-width: 980px) {
    .header-inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 14px 0;
    }

    .main-nav {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .hero-finder,
    .hero-grid,
    .split,
    .two-columns,
    .quote-layout,
    .detail-grid,
    .cards,
    .cards--compact,
    .check-grid,
    .steps,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
    }
}

@media (max-width: 720px) {
    body {
        padding-bottom: 68px;
    }

    .header-inner,
    .breadcrumbs,
    .hero-content,
    .hero-grid,
    .section-shell,
    .footer-grid {
        width: min(var(--max), calc(100% - 24px));
    }

    .brand small {
        display: none;
    }

    .main-nav {
        gap: 12px;
        font-size: .9rem;
    }

    .main-nav a {
        white-space: nowrap;
    }

    .nav-sub {
        display: none;
    }

    .nav-cta {
        display: none;
    }

    .hero,
    .hero--compact {
        min-height: auto;
    }

    .hero-content {
        padding: 42px 0;
    }

    .hero-grid,
    .hero-grid--devis,
    .hero-grid--intent {
        gap: 24px;
        padding: 30px 0;
    }

    .hero-panel {
        padding: 20px;
    }

    .hero h1 {
        font-size: clamp(1.85rem, 9vw, 2.45rem);
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .hero-lead {
        overflow-wrap: break-word;
    }

    .hero--intent .hero-lead {
        margin-top: .75rem;
        font-size: .98rem;
        line-height: 1.42;
    }

    .hero--intent .trust-badges {
        margin-top: 14px;
    }

    .hero-actions,
    .button {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .hero-actions {
        margin-top: 20px;
    }

    .hero--intent .hero-actions .button-secondary {
        display: none;
    }

    .button,
    .hero-finder button,
    .project-form button {
        display: block;
        width: 100%;
        min-width: 0;
        padding-left: .8rem;
        padding-right: .8rem;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .hero-finder,
    .project-form,
    .mini-project-form,
    .devis-selector,
    .devis-selector--inline,
    .selector-band {
        grid-template-columns: 1fr;
    }

    .category-switcher {
        padding: 12px;
    }

    .section-shell {
        padding: 42px 0;
    }

    .surface-band {
        padding-left: 16px;
        padding-right: 16px;
    }

    .content-panel,
    .quote-widget,
    .project-form {
        width: 100%;
        max-width: 100%;
        padding: 20px;
        min-width: 0;
    }

    .hero-widget .quote-widget,
    .quote-column .quote-widget {
        padding: 12px;
    }

    .quote-widget-head {
        margin-bottom: 8px;
        padding-bottom: 8px;
    }

    .quote-widget-head .eyebrow {
        margin-bottom: .2rem;
    }

    .quote-widget-head p:not(.eyebrow) {
        font-size: .84rem;
        line-height: 1.25;
    }

    .hero-widget .quote-widget h2,
    .quote-column .quote-widget h2 {
        font-size: 1.08rem;
    }

    .viteundevis-widget {
        padding: 6px;
    }

    .viteundevis-widget,
    .quote-fallback {
        max-width: 100%;
        overflow-x: auto;
    }

    .quote-meta {
        grid-template-columns: 1fr;
    }

    .steps article,
    .card,
    .check-grid > div,
    .faq details {
        padding: 18px;
    }

    .trust-badges {
        gap: 8px;
    }

    .trust-badges li {
        width: 100%;
        border-radius: var(--radius);
    }

    .mobile-sticky-cta {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 12px;
        z-index: 30;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 48px;
        padding: .8rem 1rem;
        border-radius: var(--radius);
        color: var(--ink);
        background: linear-gradient(135deg, var(--honey), #ffd985);
        box-shadow: 0 14px 36px rgba(47, 36, 29, .22);
        font-weight: 800;
        text-decoration: none;
        text-align: center;
    }

    .final-cta {
        align-items: stretch;
        flex-direction: column;
        padding: 22px;
    }

    .footer-network {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .footer-network__links {
        grid-template-columns: 1fr;
    }
}
