/* Nordbada — feuille de style unique, sans dépendance externe. */
:root {
  --paper: #f7f4ee;
  --paper-2: #efe9df;
  --card: #fffdf9;
  --ink: #1d2725;
  --ink-2: #4a5754;
  --forest: #1f3a34;
  --forest-2: #2e5248;
  --moss: #dfe7e1;
  --wood: #a8744a;
  --wood-2: #e9d8c4;
  --ember: #c8541f;
  --ember-2: #a9431a;
  --line: #ddd5c8;
  --ok: #2f6b4f;
  --err: #b3261e;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(29 39 37 / .06), 0 8px 24px rgb(29 39 37 / .06);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.65 var(--sans); }
img, svg { max-width: 100%; height: auto; }
a { color: var(--forest-2); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ember-2); }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); color: var(--forest); line-height: 1.2; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); margin: .2em 0 .35em; }
h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.95rem); margin: 2em 0 .6em; }
h3 { font-size: 1.22rem; margin: 1.6em 0 .4em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--card); padding: 8px 12px; }
.small { font-size: .86rem; color: var(--ink-2); }

/* Boutons */
.btn { display: inline-block; background: var(--ember); color: #fff; text-decoration: none; font-weight: 600; padding: .72em 1.2em; border-radius: 999px; border: 0; cursor: pointer; font-size: 1rem; line-height: 1.2; transition: background .15s, transform .15s; }
.btn:hover { background: var(--ember-2); color: #fff; transform: translateY(-1px); }
.btn-lg { font-size: 1.08rem; padding: .9em 1.5em; }
.btn-sm { font-size: .92rem; padding: .55em 1em; }
.btn-ghost { background: transparent; color: var(--forest); box-shadow: inset 0 0 0 1.5px var(--forest); }
.btn-ghost:hover { background: var(--forest); color: #fff; }

/* En-tête */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; gap: 22px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--forest); font-family: var(--serif); font-size: 1.42rem; font-weight: 700; letter-spacing: -.01em; }
.brand .logo { width: 32px; height: 32px; color: var(--forest); }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav-desktop { display: flex; gap: 4px; }
.nav a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 500; }
.nav a:hover, .nav a[aria-current] { background: var(--moss); color: var(--forest); }
.nav-mobile { display: none; position: relative; }
.nav-mobile summary { list-style: none; cursor: pointer; padding: 8px 12px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; }
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile ul { position: absolute; right: 0; top: calc(100% + 8px); background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; min-width: 210px; }
@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .nav-mobile { display: block; }
  .header-inner { gap: 10px; }
}
@media (max-width: 480px) { .header-cta { display: none; } }

/* Accueil */
.hero { background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding-block: 56px 64px; }
.hero h1 { margin-top: .1em; }
.hero .lead { font-size: 1.2rem; color: var(--ink-2); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 0; list-style: none; color: var(--ink-2); font-size: .95rem; }
.hero-proof li::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: 6px; }
.hero-art { background: var(--forest); border-radius: 24px; aspect-ratio: 1 / 1; overflow: hidden; box-shadow: var(--shadow); }
.hero-art svg { display: block; width: 100%; height: 100%; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; padding-block: 36px 44px; gap: 28px; } .hero-art { aspect-ratio: 16 / 10; } }

.section { padding: 64px 0; }
.section-alt { background: var(--card); border-block: 1px solid var(--line); }
.section-head { max-width: 46em; margin-bottom: 28px; }
.section-head h2 { margin-top: 0; }
.section-head p { color: var(--ink-2); font-size: 1.07rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin: 24px 0; }
.card { display: flex; flex-direction: column; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s, box-shadow .15s; }
.section-alt .card { background: var(--paper); }
.card:hover { border-color: var(--forest-2); transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.card-title { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: var(--forest); }
.card-text { color: var(--ink-2); font-size: .96rem; }
.card-more { margin-top: auto; color: var(--ember); font-weight: 600; font-size: .92rem; padding-top: 6px; }

.price-bands { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 24px 0 8px; }
.band { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.band-range { font-family: var(--serif); font-size: 1.6rem; color: var(--forest); font-weight: 600; margin: 4px 0 6px; }
.band-label { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--wood); margin: 0; }
.band p:last-child { margin: 0; color: var(--ink-2); font-size: .95rem; }

.steps { counter-reset: s; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.steps li { counter-increment: s; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--forest); color: #fff; font-weight: 700; margin-bottom: 10px; }
.steps strong { display: block; font-family: var(--serif); color: var(--forest); font-size: 1.1rem; margin-bottom: 4px; }

/* Pages de contenu */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 22px 0 0; font-size: .88rem; color: var(--ink-2); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--ink-2); }
.page-head { max-width: 48em; padding: 18px 0 8px; }
.kicker { text-transform: uppercase; letter-spacing: .09em; font-size: .8rem; font-weight: 700; color: var(--wood); margin: 12px 0 0; }
.lead { font-size: 1.17rem; color: var(--ink-2); }
.meta { font-size: .88rem; color: var(--ink-2); }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; padding-bottom: 72px; }
.single { max-width: 820px; padding-bottom: 72px; }
.side { position: relative; }
.side-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.side > .side-box:first-child { position: sticky; top: 86px; }
.side-title { font-family: var(--serif); font-weight: 600; color: var(--forest); font-size: 1.1rem; margin-bottom: 6px; }
.side .btn { width: 100%; text-align: center; margin-top: 4px; }
.links { list-style: none; padding: 0; margin: 0; }
.links li { padding: 5px 0; }
@media (max-width: 960px) { .article-grid { grid-template-columns: 1fr; gap: 8px; } .side > .side-box:first-child { position: static; } }

.prose { max-width: 46em; }
.prose > h2:first-child { margin-top: .6em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .35em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0 1.6em; font-size: .96rem; background: var(--card); border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.prose th, .prose td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--moss); color: var(--forest); font-weight: 650; }
.prose tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; }
.prose .summary { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--forest); border-radius: 12px; padding: 18px 20px; margin: 8px 0 24px; }
.prose .summary p:last-child, .prose .summary ul:last-child { margin-bottom: 0; }
.summary-title { font-weight: 700; color: var(--forest); margin-bottom: 6px !important; }
.note { border-radius: 12px; padding: 14px 18px; margin: 1.2em 0; font-size: .96rem; }
.note-info { background: var(--moss); }
.note-warn { background: #f6e6d8; }
.note p:last-child { margin: 0; }
.procon { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 1em 0 1.4em; }
.procon > div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.procon h3 { margin-top: 0; font-size: 1.05rem; }
.procon ul { margin: 0; }
@media (max-width: 640px) { .procon { grid-template-columns: 1fr; } }

.cta { background: var(--forest); color: #eef3f0; border-radius: 18px; padding: 28px; margin: 2.4em 0 1em; }
.cta-title { font-family: var(--serif); font-size: 1.45rem; color: #fff; font-weight: 600; margin-bottom: 8px; }
.cta .small { color: #c6d4ce; margin: 12px 0 0; }

.faq { margin-top: 2.4em; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 15px 18px; font-weight: 600; list-style: none; position: relative; padding-right: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 12px; font-size: 1.4rem; color: var(--wood); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 18px 14px; color: var(--ink-2); }
.faq details > div p:last-child { margin: 0; }

/* Formulaire */
.form { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: var(--shadow); }
.form fieldset { border: 0; padding: 0; margin: 0 0 26px; }
.form legend { font-family: var(--serif); font-size: 1.25rem; color: var(--forest); font-weight: 600; margin-bottom: 12px; padding: 0; }
.field { margin-bottom: 18px; }
.field > label, .field-label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field select, .field textarea { width: 100%; font: inherit; color: inherit; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--forest-2); outline: none; box-shadow: 0 0 0 3px var(--moss); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } .form { padding: 20px; } }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: inline-block; padding: 9px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-size: .95rem; transition: all .12s; }
.choice input:checked + span { background: var(--forest); border-color: var(--forest); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--ember); outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; color: var(--ink-2); }
.consent input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--forest); }
.error { color: var(--err); font-size: .9rem; margin: 6px 0 0; font-weight: 600; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--err) !important; }
.alert { background: #fbe9e7; color: var(--err); border-radius: 12px; padding: 14px 18px; margin-bottom: 20px; font-weight: 600; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-aside { display: grid; gap: 14px; align-content: start; }
.devis-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; padding-bottom: 72px; }
@media (max-width: 960px) { .devis-grid { grid-template-columns: 1fr; } }

/* Pied de page */
.site-footer { background: var(--forest); color: #d4e0da; padding: 52px 0 26px; font-size: .95rem; }
.site-footer a { color: #eef3f0; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.brand-footer, .brand-footer .logo { color: #fff; }
.brand-footer .logo { --paper: var(--forest); }
.foot-title { color: #fff; font-weight: 700; margin-bottom: 8px; }
.foot-bottom { border-top: 1px solid rgb(255 255 255 / .14); margin-top: 36px; padding-top: 18px; display: flex; justify-content: space-between; gap: 24px; font-size: .86rem; color: #b6c7bf; }
.foot-bottom p { margin: 0; max-width: 60em; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .foot-bottom { flex-direction: column; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .side, .cta, .site-footer { display: none; } }

/* Page de devis : pleine largeur */
.t-form .single { max-width: none; }
.t-form .prose { max-width: none; }
