/* ==========================================================================
   Charpente Normandie v2 : thème « Sang de bœuf »
   Rouge sang de bœuf (le rouge des granges et colombages), sable, ocre, encre
   Space Grotesk (titres) + DM Sans (texte) · mots surlignés à l'ocre
   Motif : le pignon (images et séparateurs en forme de toit)
   Mise en page : barre d'infos + menu déroulant, hero bordeaux avec formulaire, frise de pignons,
   services en cartes-pignons, signes d'alerte à points cliquables, onglets de charpentes,
   avant/après « loupe », frise d'étapes, tableau des essences, dock de contact.
   ========================================================================== */
:root {
    --paper: #faf6ef;
    --sand: #f1e9dc;
    --bord: #7a1f2b;
    --bord-d: #5c1720;
    --ochre: #e0a43b;
    --ochre-d: #c98d27;
    --ink: #1e1916;
    --text: #3d3530;
    --muted: #776b62;
    --line: rgba(30, 25, 22, .12);
    --line-l: rgba(250, 246, 239, .16);
    --head: "Space Grotesk", system-ui, sans-serif;
    --body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --ease: cubic-bezier(.2, .8, .2, 1);
    --r: 12px;
    --space: clamp(4rem, 8vw, 7rem);
    --gable: polygon(0 20%, 50% 0, 100% 20%, 100% 100%, 0 100%);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 1.05rem; line-height: 1.65; color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--bord); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; color: var(--ink); letter-spacing: -0.035em; line-height: 1.06; margin: 0 0 .55em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.1rem, 1.4vw, 1.25rem); letter-spacing: -0.02em; line-height: 1.2; }
mark { color: inherit; background: linear-gradient(transparent 60%, rgba(224, 164, 59, .6) 60%); padding: 0 .08em; }
.hero mark, .ph mark, .sec-ink mark, .cta mark, .pop-exit mark { background: none; color: var(--ochre); padding: 0; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--ochre); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(1260px, 100% - clamp(2rem, 6vw, 4rem)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 300; padding: .6rem 1rem; background: #fff; }
.icon { width: 22px; height: 22px; flex: none; }
.icon-sm { width: 18px; height: 18px; flex: none; }
.icon-xs { width: 14px; height: 14px; flex: none; }
.fill { width: 100%; height: 100%; object-fit: cover; }
.small, .note { margin-top: 1.2rem; color: var(--muted); font-size: .92rem; }
.sp { height: clamp(2.5rem, 5vw, 4rem); }
.gable { overflow: hidden; clip-path: var(--gable); margin: 0; }
.kicker { display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 1rem; font-family: var(--head); font-size: .85rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--bord); }
.kicker::before { content: ""; width: 18px; height: 10px; background: currentColor; clip-path: polygon(0 100%, 50% 0, 100% 100%, 82% 100%, 50% 36%, 18% 100%); }
.kicker-light { color: var(--ochre); }
.act { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin-top: 1.8rem; }
.chip { display: inline-block; padding: .3rem .75rem; border-radius: 6px; background: var(--sand); color: var(--bord); font-size: .82rem; font-weight: 600; letter-spacing: .04em; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chips li { padding: .35rem .8rem; border-radius: 6px; background: var(--sand); color: var(--ink); font-size: .9rem; }
.sec-ink .chips li { background: rgba(250, 246, 239, .08); color: var(--paper); }
.ticks { display: grid; gap: .55rem; }
.ticks li { display: flex; gap: .6rem; align-items: flex-start; line-height: 1.45; }
.ticks .icon-xs { margin-top: .3rem; color: var(--bord); }
.ticks-light li { color: rgba(250, 246, 239, .9); }
.ticks-light .icon-xs { color: var(--ochre); }
.ticks-muted .icon-xs { color: var(--muted); }
.warn { display: flex; gap: .7rem; align-items: flex-start; margin: 2rem 0 0; padding: 1rem 1.2rem; border-left: 4px solid var(--ochre); border-radius: 0 var(--r) var(--r) 0; background: #fff; color: var(--ink); font-size: .96rem; }
.warn .icon-sm { flex: none; margin-top: .2rem; color: var(--bord); }
.stars { display: inline-flex; gap: 2px; }
.star { width: 15px; height: 15px; fill: rgba(30, 25, 22, .15); }
.star.on { fill: var(--ochre); }
.gauge { display: inline-flex; gap: 3px; }
.gauge i { width: 12px; height: 12px; border-radius: 3px; background: var(--line); }
.gauge i.on { background: var(--bord); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 50px; padding: .8rem 1.4rem; border: 2px solid transparent; border-radius: 8px; font-family: var(--head); font-weight: 600; font-size: 1rem; line-height: 1.15; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.btn .icon-sm { transition: transform .3s var(--ease); }
.btn:hover .icon-sm:last-child { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 58px; padding: 1rem 1.7rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-ochre { background: var(--ochre); color: var(--ink); }
.btn-ochre:hover { background: #ecb552; }
.btn-bord { background: var(--bord); color: #fff; }
.btn-bord:hover { background: var(--bord-d); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-ghost { border-color: rgba(250, 246, 239, .4); color: var(--paper); }
.btn-ghost:hover { border-color: var(--paper); background: rgba(250, 246, 239, .08); }
.link { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--head); font-weight: 600; color: var(--bord); text-decoration: none; }
.link .icon-sm { transition: transform .3s var(--ease); }
.link:hover .icon-sm { transform: translateX(5px); }
.link-light { color: var(--ochre); }

/* ─── Barre d'infos + en-tête ────────────────────────────────── */
.topbar { background: var(--bord-d); color: rgba(250, 246, 239, .85); font-size: .88rem; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 40px; }
.topbar p { display: flex; align-items: center; gap: .45rem; margin: 0; }
.topbar-r { display: flex; gap: 1.5rem; }
.topbar a { display: inline-flex; align-items: center; gap: .4rem; color: var(--paper); font-weight: 600; text-decoration: none; }
.topbar a:hover { color: var(--ochre); }
.hd { position: sticky; top: 0; z-index: 70; background: var(--paper); border-bottom: 1px solid var(--line); transition: box-shadow .3s; }
.hd.is-scrolled { box-shadow: 0 10px 30px -20px rgba(30, 25, 22, .5); }
.hd-in { display: flex; align-items: center; gap: 1.5rem; height: 78px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; margin-right: auto; color: var(--ink); text-decoration: none; }
.brand-ic { width: 44px; height: 44px; }
.brand-txt { display: grid; font-family: var(--head); line-height: 1; }
.brand-txt b { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.03em; }
.brand-txt span { font-size: .78rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--bord); }
.brand-light { color: var(--paper); }
.brand-logo { display: block; width: auto; height: 54px; }
.ft .brand-logo { height: 64px; }
.brand-light .brand-txt span { color: var(--ochre); }
.nav { display: flex; align-items: center; gap: .2rem; }
.nav > a, .dd-btn { position: relative; display: inline-flex; align-items: center; gap: .35rem; padding: .6rem .85rem; border: 0; background: none; color: var(--ink); font: inherit; font-family: var(--head); font-weight: 500; text-decoration: none; cursor: pointer; }
.nav > a::after, .dd-btn::after { content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .25rem; height: 2px; background: var(--bord); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav > a:hover::after, .nav > a[aria-current="page"]::after, .dd-btn.is-active::after, .dd:hover .dd-btn::after { transform: none; }
.nav > a[aria-current="page"], .dd-btn.is-active { color: var(--bord); }
.nav-tel { display: none !important; }
.dd { position: relative; }
.dd-btn .icon-xs { transition: transform .3s; }
.dd.is-open .dd-btn .icon-xs { transform: rotate(180deg); }
.dd-panel { position: absolute; left: -1rem; top: calc(100% + 14px); display: grid; grid-template-columns: 1fr 1fr; gap: .3rem; width: 620px; padding: .8rem; border-radius: var(--r); background: #fff; box-shadow: 0 30px 60px -25px rgba(30, 25, 22, .45); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s, transform .3s var(--ease), visibility .25s; }
.dd-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.dd:hover .dd-panel, .dd.is-open .dd-panel, .dd:focus-within .dd-panel { opacity: 1; visibility: visible; transform: none; }
.dd-panel a { display: grid; grid-template-columns: 2rem 1fr; gap: 0 .4rem; padding: .8rem; border-radius: 8px; color: var(--ink); text-decoration: none; transition: background-color .2s; }
.dd-panel a:hover, .dd-panel a[aria-current="page"] { background: var(--sand); }
.dd-panel a span { grid-row: span 2; font-family: var(--head); font-weight: 700; color: var(--bord); }
.dd-panel a b { font-family: var(--head); font-weight: 600; }
.dd-panel a small { color: var(--muted); font-size: .85rem; line-height: 1.35; }
.dd-panel .dd-all { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; background: var(--bord); color: #fff; font-family: var(--head); font-weight: 600; }
.dd-panel .dd-all:hover { background: var(--bord-d); }
.hd-cta { min-height: 48px; }
.burger { display: none; width: 48px; height: 48px; padding: 0 12px; border: 0; border-radius: 8px; background: var(--ink); cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; }
.burger i { display: block; height: 2px; background: var(--paper); transition: transform .3s, opacity .3s; }
.nav-open .burger i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .burger i:nth-child(2) { opacity: 0; }
.nav-open .burger i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Hero accueil (bordeaux + formulaire) ───────────────────── */
.hero { position: relative; padding: clamp(3rem, 6vw, 5rem) 0 clamp(8rem, 14vw, 12rem); background: var(--bord); color: rgba(250, 246, 239, .85); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, transparent 0 46px, rgba(0, 0, 0, .06) 46px 48px); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.hero h1 { color: var(--paper); font-size: clamp(2.5rem, 5.6vw, 4.8rem); }
.hero-lead { max-width: 560px; font-size: clamp(1.08rem, 1.4vw, 1.25rem); }
.hero-ticks { display: grid; gap: .6rem; margin-top: 1.6rem; }
.hero-ticks li { display: flex; align-items: center; gap: .7rem; color: var(--paper); font-weight: 500; }
.hero-ticks .icon-sm { padding: 3px; border-radius: 50%; background: var(--ochre); color: var(--ink); width: 22px; height: 22px; }
.gables { position: relative; z-index: 2; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: clamp(.6rem, 1.5vw, 1.2rem); margin-top: clamp(-9rem, -12vw, -6rem); }
.gables .gable { aspect-ratio: 4 / 3.3; box-shadow: 0 30px 50px -30px rgba(0, 0, 0, .5); }
.gables .g1 { aspect-ratio: 4 / 3; }
.gables .g2, .gables .g3 { margin-top: 2.5rem; }

/* Formulaire */
.fcard { padding: clamp(1.3rem, 3vw, 1.8rem); border-radius: var(--r); background: var(--paper); color: var(--text); box-shadow: 0 40px 70px -35px rgba(0, 0, 0, .55); border-top: 6px solid var(--ochre); }
.fcard-h { display: flex; gap: .9rem; align-items: center; margin-bottom: 1.2rem; }
.fcard-h svg { width: 48px; height: 48px; flex: none; padding: 8px; border-radius: 10px; background: var(--bord); color: var(--paper); }
.fcard-t { margin: 0 0 .15rem; font-size: clamp(1.25rem, 2vw, 1.5rem); }
.fcard-h p { margin: 0; color: var(--muted); font-size: .92rem; }
.fcard-tel { margin: 1rem 0 0; text-align: center; color: var(--muted); font-size: .95rem; }
.fcard-tel a { font-family: var(--head); font-weight: 700; color: var(--bord); text-decoration: none; }
.tally-frame { display: block; min-height: 420px; }
.form-mock { display: grid; gap: .65rem; }
.mock-row { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.mock-field { position: relative; display: flex; align-items: center; height: 52px; padding: 0 1rem; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; }
.mock-field small { font-size: .94rem; color: #8b8077; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-select::after { content: ""; position: absolute; right: 1rem; top: 50%; width: 8px; height: 8px; border-right: 2px solid #8b8077; border-bottom: 2px solid #8b8077; transform: translateY(-70%) rotate(45deg); }
.mock-select small { padding-right: 1.5rem; }
.mock-area { height: 96px; align-items: flex-start; padding-top: .85rem; }
.mock-btn { display: grid; place-items: center; height: 54px; margin-top: .2rem; border-radius: 8px; background: var(--bord); color: #fff; font-family: var(--head); font-weight: 600; }

/* ─── Sections ───────────────────────────────────────────────── */
.sec { position: relative; padding: var(--space) 0; }
.sec-tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.sec-sand { background: var(--sand); }
.sec-ink { background: var(--ink); color: rgba(250, 246, 239, .78); }
.sec-ink h2, .sec-ink h3 { color: var(--paper); }
.sec-sand::before, .sec-ink::before { content: ""; position: absolute; left: 0; right: 0; top: -38px; height: 39px; background: inherit; clip-path: polygon(0 100%, 50% 0, 100% 100%); }
.sh { margin-bottom: clamp(2rem, 4vw, 3.2rem); max-width: 820px; }
.sh h2 { margin: 0; }
.sh-p { margin: 1rem 0 0; color: var(--muted); font-size: 1.08rem; }
.sec-ink .sh-p { color: rgba(250, 246, 239, .7); }
.sh-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.2rem 3rem; max-width: none; }

/* Engagements */
.pledges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.pledge { display: flex; gap: 1rem; padding: 1.4rem; border: 1.5px solid var(--line); border-radius: var(--r); }
.pledge .icon { width: 46px; height: 46px; padding: 11px; border-radius: 10px; background: var(--sand); color: var(--bord); }
.pledge h3 { margin-bottom: .25rem; }
.pledge p { margin: 0; color: var(--muted); font-size: .96rem; }

/* Cartes services */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.6rem); }
.card { display: flex; flex-direction: column; border-radius: var(--r); background: #fff; color: var(--text); text-decoration: none; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; }
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(30, 25, 22, .4); }
.card-pic { aspect-ratio: 16 / 11; --gable: polygon(0 0, 100% 0, 100% 86%, 50% 100%, 0 86%); }
.card-pic img { transition: transform .8s var(--ease); }
.card:hover .card-pic img { transform: scale(1.06); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 1rem 1.5rem 1.5rem; }
.card-n { font-family: var(--head); font-weight: 700; color: var(--ochre-d); }
.card h3 { margin: .2rem 0 .4rem; font-size: 1.3rem; }
.card p { flex: 1; margin: 0 0 1rem; color: var(--muted); font-size: .97rem; }

/* Signes d'alerte (points cliquables) */
.spots { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: clamp(1.5rem, 3vw, 2.5rem); align-items: center; }
.spots-pic { position: relative; margin: 0; aspect-ratio: 3 / 2; border-radius: var(--r); overflow: hidden; }
.spots-pic img { width: 100%; height: 100%; object-fit: cover; }
.spots-pic figcaption { position: absolute; right: .8rem; bottom: .8rem; padding: .2rem .6rem; border-radius: 4px; background: rgba(30, 25, 22, .6); color: var(--paper); font-size: .75rem; }
.spot { position: absolute; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 3px solid var(--paper); border-radius: 50%; background: var(--bord); color: #fff; font-family: var(--head); font-weight: 700; cursor: pointer; transform: translate(-50%, -50%); transition: background-color .2s, transform .3s var(--ease); }
.spot::before { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid var(--ochre); opacity: 0; animation: ping 2.2s infinite; }
.spot.is-on { background: var(--ochre); color: var(--ink); transform: translate(-50%, -50%) scale(1.15); }
.spot.is-on::before { animation: none; opacity: 1; }
@keyframes ping { 0% { opacity: .9; transform: scale(.7); } 100% { opacity: 0; transform: scale(1.4); } }
.spots-list { display: grid; gap: .5rem; }
.spots-list li { border-radius: var(--r); background: rgba(255, 255, 255, .6); transition: background-color .2s; }
.sec-ink .spots-list li { background: rgba(250, 246, 239, .06); }
.spots-list li.is-on { background: #fff; }
.sec-ink .spots-list li.is-on { background: rgba(250, 246, 239, .12); }
.spots-list button { display: flex; align-items: center; gap: .8rem; width: 100%; padding: .9rem 1rem; border: 0; background: none; color: var(--ink); font: inherit; font-family: var(--head); font-weight: 600; text-align: left; cursor: pointer; }
.sec-ink .spots-list button { color: var(--paper); }
.spots-list button span { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--bord); color: #fff; font-size: .9rem; }
.spots-list li.is-on button span { background: var(--ochre); color: var(--ink); }
.spots-d { display: none; padding: 0 1rem 1rem 3.7rem; }
.spots-list li.is-on .spots-d { display: block; }
.spots-d p { margin: 0 0 .4rem; color: var(--muted); font-size: .95rem; }
.sec-ink .spots-d p { color: rgba(250, 246, 239, .7); }
.spots-d a { font-family: var(--head); font-weight: 600; font-size: .95rem; text-decoration: none; }
.sec-ink .spots-d a { color: var(--ochre); }
.inline-cta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem 2rem; margin-top: 2rem; padding: 1.2rem 1.4rem; border-radius: var(--r); background: #fff; }
.inline-cta p { margin: 0; }
.inline-cta b { color: var(--ink); }

/* Onglets types de charpente */
.ttabs-list { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 2rem; padding: .4rem; border-radius: 10px; background: rgba(250, 246, 239, .06); width: fit-content; }
.ttabs-list button { padding: .8rem 1.3rem; border: 0; border-radius: 7px; background: none; color: rgba(250, 246, 239, .75); font: inherit; font-family: var(--head); font-weight: 600; cursor: pointer; transition: background-color .2s, color .2s; }
.ttabs-list button:hover { color: var(--paper); }
.ttabs-list button[aria-selected="true"] { background: var(--ochre); color: var(--ink); }
.ttabs-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.ttabs-panel[hidden] { display: none; }
.ttabs-draw { width: 100%; height: auto; padding: clamp(1.5rem, 4vw, 3rem); border: 1px solid var(--line-l); border-radius: var(--r); fill: none; stroke: var(--ochre); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; background-image: linear-gradient(var(--line-l) 1px, transparent 1px), linear-gradient(90deg, var(--line-l) 1px, transparent 1px); background-size: 24px 24px; }
.ttabs-panel h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.ttabs-panel p { font-size: 1.1rem; max-width: 48ch; }
.ttabs-panel .chips { margin: 1.2rem 0 1.6rem; }
.sec-ink .link { color: var(--ochre); }

/* Avant / après « loupe » */
.lens-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 3vw, 2.5rem); }
.lens-wide { grid-column: 1 / -1; }
.lens-col { display: grid; gap: clamp(3rem, 6vw, 4.5rem); }
.lens { margin: 0; }
.lens-imgs { --x: 50%; --y: 50%; --lr: 0px; position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--r); background: var(--sand); cursor: crosshair; touch-action: pan-y; }
.lens-wide .lens-imgs { aspect-ratio: 21 / 10; }
.lens-imgs img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lens-b { -webkit-clip-path: circle(var(--lr) at var(--x) var(--y)); clip-path: circle(var(--lr) at var(--x) var(--y)); transition: clip-path .5s var(--ease), -webkit-clip-path .5s var(--ease); }
.lens.is-moving .lens-b { transition: none; }
.lens.is-full .lens-b { -webkit-clip-path: circle(150% at var(--x) var(--y)); clip-path: circle(150% at var(--x) var(--y)); }
.lens-lab { position: absolute; top: 1rem; padding: .3rem .75rem; border-radius: 6px; font-family: var(--head); font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.lens-lab-a { left: 1rem; background: rgba(30, 25, 22, .75); color: var(--paper); }
.lens-lab-b { right: 1rem; background: var(--ochre); color: var(--ink); opacity: 0; transition: opacity .3s; }
.lens.is-moving .lens-lab-b, .lens.is-full .lens-lab-b { opacity: 1; }
.lens-hint { position: absolute; left: 50%; top: 50%; display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1rem; border-radius: 999px; background: rgba(30, 25, 22, .7); color: var(--paper); font-size: .9rem; font-weight: 600; transform: translate(-50%, -50%); pointer-events: none; transition: opacity .3s; }
.lens.is-moving .lens-hint, .lens.is-full .lens-hint, .lens.was-used .lens-hint { opacity: 0; }
.lens-btn { position: absolute; left: 1rem; bottom: 1rem; padding: .6rem 1rem; border: 0; border-radius: 8px; background: var(--paper); color: var(--ink); font: inherit; font-family: var(--head); font-weight: 600; font-size: .92rem; cursor: pointer; }
.lens-btn[aria-pressed="true"] { background: var(--ochre); }
.lens figcaption { display: grid; gap: .3rem; padding-top: 1.1rem; }
.lens figcaption .chip { justify-self: start; }
.lens figcaption b { font-family: var(--head); font-size: 1.25rem; color: var(--ink); }
.lens figcaption span:last-child { color: var(--muted); }

/* Frise d'étapes */
.tline { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.2rem; }
.tline::before { content: ""; position: absolute; left: 0; right: 0; top: 26px; height: 2px; background: repeating-linear-gradient(90deg, var(--bord) 0 10px, transparent 10px 18px); }
.tline li { position: relative; }
.tline-n { position: relative; display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 1.2rem; background: var(--bord); color: #fff; font-family: var(--head); font-size: 1.2rem; font-weight: 700; clip-path: polygon(50% 0, 100% 38%, 100% 100%, 0 100%, 0 38%); padding-top: 8px; }
.tline h3 { margin-bottom: .35rem; }
.tline p { margin: 0; color: var(--muted); font-size: .96rem; }

/* Tableau des essences */
.etable-wrap { overflow-x: auto; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
.etable { width: 100%; border-collapse: collapse; font-size: .98rem; }
.etable th, .etable td { padding: 1.1rem 1.2rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.etable thead th { font-family: var(--head); font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--sand); }
.etable tbody tr:last-child > * { border-bottom: 0; }
.etable tbody th { display: flex; align-items: center; gap: .9rem; font-weight: 400; }
.etable tbody th b { display: block; font-family: var(--head); font-size: 1.1rem; color: var(--ink); }
.etable tbody th small { color: var(--muted); }
.wood-dot { width: 44px; height: 44px; flex: none; border-radius: 8px; background-color: var(--g1); background-image: repeating-radial-gradient(ellipse 140% 50% at 20% 130%, var(--g1) 0 4px, var(--g2) 5px 7px, var(--g1) 8px 12px); }
.bar { display: block; width: 110px; height: 8px; border-radius: 4px; background: var(--sand); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 4px; background: var(--bord); }
.eur { color: var(--ink); }
.eur-off { color: rgba(30, 25, 22, .18); }

/* Cartes essences (page bois) */
.ecards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.ecard { display: grid; grid-template-columns: 160px 1fr; overflow: hidden; border-radius: var(--r); background: #fff; scroll-margin-top: 110px; }
.ess-swatch { display: block; background-color: var(--g1); background-image: repeating-radial-gradient(ellipse 120% 40% at 30% 120%, var(--g1) 0 6px, var(--g2) 7px 9px, var(--g1) 10px 16px); }
.ecard-b { padding: 1.5rem; }
.ecard-b h3 { margin-bottom: .1rem; font-size: 1.5rem; }
.ecard-sub { color: var(--bord); font-weight: 600; }
.ecard-b > p:not(.ecard-sub):not(.ecard-use) { color: var(--muted); font-size: .97rem; }
.ecard-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1rem 0; font-size: .95rem; }
.ecard-t { margin-bottom: .4rem; font-family: var(--head); font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ecard-use { margin: 0; padding-top: .9rem; border-top: 1px solid var(--line); color: var(--ink); }

/* Avis */
.rv-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 1.2rem; }
.rv { display: flex; flex-direction: column; gap: 1rem; margin: 0; padding: 1.8rem; border-radius: var(--r); background: var(--sand); }
.rv-big { background: var(--bord); color: rgba(250, 246, 239, .85); }
.rv-q { width: 40px; height: 40px; color: var(--ochre); }
.rv blockquote { flex: 1; margin: 0; font-size: 1.08rem; color: var(--ink); }
.rv-big blockquote { font-family: var(--head); font-size: clamp(1.25rem, 2vw, 1.55rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.3; color: var(--paper); }
.rv figcaption { display: grid; gap: .2rem; }
.rv figcaption b { color: var(--ink); font-family: var(--head); }
.rv-big figcaption b { color: var(--paper); }
.rv figcaption span:last-child { color: var(--muted); font-size: .9rem; }
.rv-big figcaption span:last-child { color: rgba(250, 246, 239, .65); }
.gnote { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; }
.gnote b { font-family: var(--head); font-size: 2rem; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.faq-wrap .btn { margin-top: 1.2rem; }
.faq { margin-bottom: .6rem; border-radius: var(--r); background: #fff; }
.sec:not(.sec-sand) .faq { background: var(--sand); }
.faq summary { display: grid; grid-template-columns: 2.4rem 1fr 32px; align-items: center; gap: .8rem; padding: 1.15rem 1.2rem; cursor: pointer; list-style: none; color: var(--ink); font-family: var(--head); font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq-n { font-weight: 700; color: var(--ochre-d); }
.faq summary i { position: relative; width: 32px; height: 32px; border-radius: 8px; background: var(--bord); transition: transform .3s var(--ease); }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: #fff; transform: translate(-50%, -50%); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s; }
.faq[open] summary i::after { transform: translate(-50%, -50%); }
.faq-body { padding: 0 1.2rem 1.3rem 4.4rem; }
.faq-body p { margin: 0; color: var(--muted); }

/* Départements */
.depts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
.depts-full { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.dept { padding: 1.4rem; border: 1.5px solid var(--line); border-radius: var(--r); }
.dept-h { display: grid; gap: .1rem; color: var(--ink); text-decoration: none; }
.dept-h b { font-family: var(--head); font-size: 2.6rem; font-weight: 700; line-height: 1; letter-spacing: -0.04em; color: var(--bord); }
.dept-h span { font-family: var(--head); font-size: 1.1rem; font-weight: 600; }
.dept-h:hover span { text-decoration: underline; }
.dept-m { margin: .3rem 0 0; color: var(--muted); font-size: .9rem; }
.dept ul { display: grid; gap: .3rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.dept ul a { color: var(--text); text-decoration: none; font-size: .95rem; }
.dept ul a::before { content: "→ "; color: var(--ochre-d); }
.dept ul a:hover { color: var(--bord); }
.zone-c { display: flex; flex-wrap: wrap; gap: .5rem; }
.zone-c a { padding: .6rem 1rem; border: 1.5px solid var(--line); border-radius: 8px; color: var(--ink); text-decoration: none; transition: background-color .2s, color .2s; }
.zone-c a:hover { background: var(--bord); border-color: var(--bord); color: #fff; }

/* CTA */
.cta { position: relative; padding: clamp(4rem, 8vw, 6rem) 0; background: var(--bord); color: rgba(250, 246, 239, .85); }
.cta::before { content: ""; position: absolute; left: 0; right: 0; top: -48px; height: 49px; background: var(--bord); clip-path: polygon(0 100%, 50% 0, 100% 100%); }
.cta-in { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 2rem 4rem; align-items: center; }
.cta h2 { color: var(--paper); font-size: clamp(2rem, 4.4vw, 3.6rem); }
.cta p { max-width: 560px; font-size: 1.1rem; }
.cta-act { display: grid; gap: 1rem; justify-items: start; }
.cta-tel { display: inline-flex; align-items: center; gap: .6rem; color: var(--paper); font-family: var(--head); font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 700; text-decoration: none; }
.cta-tel .icon { color: var(--ochre); }

/* ─── Pied de page ───────────────────────────────────────────── */
.ft { position: relative; padding: clamp(4rem, 7vw, 5rem) 0 1.6rem; background: var(--ink); color: rgba(250, 246, 239, .65); }
.cta + .ft { padding-top: clamp(3rem, 6vw, 4rem); }
.ft-head { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem 3rem; align-items: center; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line-l); }
.ft-head p { margin: 0; max-width: 520px; }
.ft-tel { display: inline-flex; align-items: center; gap: .6rem; color: var(--paper); font-family: var(--head); font-size: 1.5rem; font-weight: 700; text-decoration: none; }
.ft-tel .icon { color: var(--ochre); }
.ft-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1.2fr; gap: 2.5rem; padding: 2.5rem 0; }
.ft-t { margin-bottom: .9rem; font-family: var(--head); font-size: .82rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ochre); }
.ft ul { display: grid; gap: .45rem; }
.ft a { color: var(--paper); text-decoration: none; }
.ft a:hover { color: var(--ochre); }
.ft-box { padding: 1.4rem; border-radius: var(--r); background: rgba(250, 246, 239, .06); }
.ft-box .ft-t { color: var(--paper); font-size: 1rem; letter-spacing: 0; text-transform: none; }
.ft-box .btn { color: var(--ink); }
.ft-bot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: 1.4rem; border-top: 1px solid var(--line-l); font-size: .88rem; }
.ft-bot p { margin: 0; }

/* ─── Dock de contact ────────────────────────────────────────── */
.dock { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 50; opacity: 0; transform: translateY(24px); pointer-events: none; transition: opacity .35s, transform .45s var(--ease); }
.dock.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.dock-in { display: flex; align-items: center; gap: .6rem; padding: .55rem .55rem .55rem 1.1rem; border-radius: 12px; background: var(--ink); color: var(--paper); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .6); border-left: 5px solid var(--ochre); }
.dock-txt { display: grid; line-height: 1.2; margin-right: .4rem; }
.dock-txt b { font-family: var(--head); }
.dock-txt span { color: rgba(250, 246, 239, .6); font-size: .82rem; }
.dock-tel { display: inline-flex; align-items: center; gap: .45rem; height: 46px; padding: 0 1rem; border-radius: 8px; background: rgba(250, 246, 239, .1); color: var(--paper); font-family: var(--head); font-weight: 600; text-decoration: none; }
.dock-tel:hover { background: rgba(250, 246, 239, .18); }
.dock-cta { min-height: 46px; }
.dock-x { width: 30px; height: 30px; padding: 0; border: 0; border-radius: 6px; background: none; color: rgba(250, 246, 239, .55); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.dock-x:hover { color: var(--paper); }
.dock.is-mini .dock-txt, .dock.is-mini .dock-x, .dock.is-mini .dock-tel span { display: none; }
.dock.is-mini .dock-in { padding: .45rem; gap: .45rem; }

/* Remonter : pignon qui se remplit */
.top { position: fixed; left: 1.2rem; bottom: 1.2rem; z-index: 49; display: grid; place-items: center; width: 52px; height: 52px; color: var(--ink); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, transform .3s var(--ease), visibility .3s; }
.top.is-visible { opacity: 1; visibility: visible; transform: none; }
.top > svg:first-child { position: relative; z-index: 1; width: 24px; height: 24px; margin-top: 6px; }
.top-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.top-ring path { fill: var(--paper); stroke: var(--bord); stroke-width: 2.5; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
.top:hover .top-ring path { fill: var(--ochre); }

/* ─── Pop-ups ────────────────────────────────────────────────── */
.pop { position: fixed; inset: 0; z-index: 100; }
.pop[hidden] { display: none; }
.pop-bg { position: absolute; inset: 0; background: rgba(30, 25, 22, .6); opacity: 0; transition: opacity .3s; }
.pop.is-open .pop-bg { opacity: 1; }
.pop-x { position: absolute; top: .9rem; right: .9rem; z-index: 3; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 8px; background: var(--ink); color: var(--paper); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.pop-x-light { background: var(--paper); color: var(--ink); }
.pop-mid .pop-box { position: absolute; left: 50%; top: 50%; display: grid; grid-template-columns: .9fr 1.1fr; width: min(860px, calc(100% - 2rem)); max-height: calc(100vh - 2rem); overflow: auto; border-radius: 16px; background: var(--paper); transform: translate(-50%, -45%); opacity: 0; transition: transform .45s var(--ease), opacity .3s; }
.pop-mid.is-open .pop-box { transform: translate(-50%, -50%); opacity: 1; }
.pop-pic { position: relative; margin: 0; min-height: 100%; }
.pop-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pop-pic figcaption { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; padding: .7rem .9rem; border-radius: 8px; background: rgba(30, 25, 22, .75); color: var(--paper); font-size: .9rem; }
.pop-body { padding: clamp(1.6rem, 4vw, 2.6rem); }
.pop-body h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); padding-right: 2rem; }
.pop-body > p { color: var(--muted); }
.pop-act { display: grid; gap: .6rem; margin-top: 1.4rem; }
.pop-later { margin-top: 1rem; padding: 0; border: 0; background: none; color: var(--muted); font: inherit; text-decoration: underline; cursor: pointer; }
.pop-later-light { color: rgba(250, 246, 239, .65); }
.pop-exit .pop-box { position: absolute; inset: 0; overflow-y: auto; background: var(--bord); color: rgba(250, 246, 239, .85); clip-path: inset(0 0 100% 0); transition: clip-path .6s var(--ease); }
.pop-exit.is-open .pop-box { clip-path: inset(0); }
.pop-exit-grid { display: grid; grid-template-columns: 1fr minmax(0, 480px); gap: clamp(2rem, 6vw, 5rem); align-items: center; min-height: 100%; padding: 4rem 0; }
.pop-exit h2 { color: var(--paper); font-size: clamp(2rem, 5vw, 4rem); }
.pop-exit-txt > p { font-size: 1.15rem; max-width: 520px; }
.pop-bigtel { display: inline-flex; align-items: center; gap: .7rem; margin-top: 1rem; color: var(--paper); font-family: var(--head); font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; text-decoration: none; }
.pop-bigtel .icon { color: var(--ochre); }
.pop-exit .pop-later { display: block; margin-top: 1.6rem; }
.pop-open { overflow: hidden; }

/* ─── En-tête pages internes ─────────────────────────────────── */
.ph { position: relative; padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(4rem, 7vw, 6rem); background: var(--bord); color: rgba(250, 246, 239, .85); overflow: hidden; }
.ph::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, transparent 0 46px, rgba(0, 0, 0, .06) 46px 48px); pointer-events: none; }
.ph-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.ph-grid-pic { align-items: center; }
.ph h1 { color: var(--paper); font-size: clamp(2.3rem, 4.8vw, 4rem); }
.ph-lead { max-width: 600px; font-size: clamp(1.05rem, 1.4vw, 1.2rem); }
.ph-facts { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.ph-facts li { display: grid; gap: .1rem; padding: .8rem 1.1rem; border-radius: 10px; background: rgba(0, 0, 0, .14); }
.ph-facts b { font-family: var(--head); font-size: 1.2rem; color: var(--paper); line-height: 1.1; }
.ph-facts span { font-size: .88rem; color: rgba(250, 246, 239, .7); }
.ph-pic { aspect-ratio: 4 / 3.4; }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.8rem; font-size: .9rem; color: rgba(250, 246, 239, .55); }
.crumbs a { color: var(--paper); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { color: var(--ochre); }

/* Page services */
.svc-list { display: grid; gap: 1.4rem; }
.svc { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding: 1.2rem; border-radius: 16px; background: #fff; }
.svc:nth-child(even) { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.svc:nth-child(even) .svc-pic { order: 2; }
.svc-pic { display: block; aspect-ratio: 4 / 3; }
.svc-pic img { transition: transform .8s var(--ease); }
.svc:hover .svc-pic img { transform: scale(1.05); }
.svc-txt { padding: .5rem; }
.sc-n { font-family: var(--head); font-weight: 700; color: var(--ochre-d); }
.svc-txt h2 { margin: .2rem 0 .7rem; font-size: clamp(1.5rem, 2.6vw, 2.2rem); }
.svc-txt h2 a { color: inherit; text-decoration: none; }
.svc-txt h2 a:hover { color: var(--bord); }
.svc-txt > p { color: var(--muted); }
.svc-txt .chips { margin: 1rem 0 1.4rem; }

/* Page service */
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split-top { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: start; }
.split-pic { aspect-ratio: 4 / 4.4; }
.prose p { font-size: 1.08rem; }
.big-p { font-size: 1.15rem; color: var(--muted); }
.sits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.sit { padding: 1.5rem; border-radius: var(--r); background: #fff; border-top: 4px solid var(--bord); }
.sec:not(.sec-sand) .sit { background: var(--sand); }
.sit span { display: block; margin-bottom: 1rem; font-family: var(--head); font-size: 1.8rem; font-weight: 700; line-height: 1; color: var(--ochre-d); }
.sit h3 { margin-bottom: .35rem; }
.sit p { margin: 0; color: var(--muted); font-size: .96rem; }
.works { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.works li { padding: 1.3rem; border: 1.5px solid var(--line); border-radius: var(--r); }
.works h3 { margin-bottom: .3rem; }
.works p { margin: 0; color: var(--muted); font-size: .96rem; }
.incl { position: sticky; top: 100px; padding: clamp(1.5rem, 3vw, 2rem); border-radius: 16px; background: var(--ink); color: rgba(250, 246, 239, .85); border-top: 6px solid var(--ochre); }
.incl .ticks { margin-bottom: 1.5rem; }
.incl-price { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin: 0 0 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line-l); font-family: var(--head); font-size: 1.3rem; font-weight: 700; color: var(--paper); }
.incl-price span { font-family: var(--body); font-size: .85rem; font-weight: 500; color: rgba(250, 246, 239, .6); }
.incl-tel { display: flex; justify-content: center; align-items: center; gap: .45rem; margin-top: 1rem; color: var(--paper); font-family: var(--head); font-weight: 600; text-decoration: none; }
.woods { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.wood { display: grid; gap: .3rem; padding: 1rem; border: 1px solid var(--line-l); border-radius: var(--r); color: var(--paper); text-decoration: none; transition: border-color .2s; }
.wood:hover { border-color: var(--ochre); }
.wood .ess-swatch { aspect-ratio: 16 / 7; margin-bottom: .6rem; border-radius: 8px; }
.wood b { font-family: var(--head); font-size: 1.2rem; }
.wood small { color: rgba(250, 246, 239, .6); }
.mini-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.mini { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r); background: #fff; color: var(--text); text-decoration: none; transition: transform .35s var(--ease); }
.sec:not(.sec-sand) .mini { background: var(--sand); }
.mini:hover { transform: translateY(-5px); }
.mini figure { aspect-ratio: 16 / 10; --gable: polygon(0 0, 100% 0, 100% 86%, 50% 100%, 0 86%); }
.mini h3 { margin: 1rem 1.3rem .3rem; }
.mini p { margin: 0 1.3rem 1.4rem; color: var(--muted); font-size: .96rem; }
.legal { max-width: 820px; }
.legal h2 { font-size: 1.5rem; margin-top: 2.2rem; }
.legal h2:first-child { margin-top: 0; }

/* Apparitions */
.js .appear { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .appear.in { opacity: 1; transform: none; }
.js .appear:not(.in) { animation: appear-safe .4s 3s forwards; }
@keyframes appear-safe { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .js .appear { opacity: 1; transform: none; }
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .burger { display: flex; }
    .hd-cta { display: none; }
    .nav { position: fixed; left: 0; right: 0; top: var(--navtop, 118px); bottom: 0; z-index: 69; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 1rem clamp(1rem, 5vw, 2rem) 2rem; overflow-y: auto; background: var(--paper); }
    .nav-open .nav { display: flex; }
    .nav-open { overflow: hidden; }
    .nav > a, .dd-btn { width: 100%; justify-content: space-between; padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: 1.15rem; }
    .nav > a::after, .dd-btn::after { display: none; }
    .dd-panel { position: static; display: none; grid-template-columns: 1fr; width: auto; padding: .5rem 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; background: none; }
    .dd.is-open .dd-panel { display: grid; }
    .dd:hover .dd-panel { display: none; }
    .dd.is-open:hover .dd-panel { display: grid; }
    .nav-tel { display: flex !important; justify-content: center !important; gap: .5rem; margin-top: 1.2rem; padding: 1rem !important; border: 0 !important; border-radius: 8px; background: var(--bord); color: #fff !important; }
    .cards { grid-template-columns: 1fr 1fr; }
    .depts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .tline { grid-template-columns: 1fr; gap: 0; }
    .tline::before { left: 26px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--bord) 0 10px, transparent 10px 18px); }
    .tline li { display: grid; grid-template-columns: 54px 1fr; column-gap: 1.2rem; padding-bottom: 1.6rem; }
    .tline-n { grid-row: span 2; margin: 0; }
    .sits { grid-template-columns: 1fr 1fr; }
    .ecards { grid-template-columns: 1fr; }
    .ft-grid { grid-template-columns: 1fr 1fr; }
    .ft-head { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .topbar p { display: none; }
    .topbar-in { justify-content: center; }
    .hero-grid, .ph-grid, .spots, .ttabs-panel, .faq-wrap, .split, .split-top, .svc, .svc:nth-child(even), .cta-in, .pop-exit-grid, .pop-mid .pop-box { grid-template-columns: 1fr; }
    .svc:nth-child(even) .svc-pic { order: 0; }
    .pledges, .rv-grid { grid-template-columns: 1fr; }
    .lens-grid { grid-template-columns: 1fr; }
    .lens-wide .lens-imgs { aspect-ratio: 3 / 2; }
    .incl { position: static; }
    .split-pic, .ph-pic { aspect-ratio: 16 / 11; }
    .pop-pic { display: none; }
    .sh-row { flex-direction: column; align-items: flex-start; }
    .etable thead { display: none; }
    .etable, .etable tbody, .etable tr, .etable th, .etable td { display: block; width: 100%; }
    .etable tr { padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
    .etable tbody th, .etable td { padding: .4rem 0; border: 0; }
    .etable td { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
    .etable td::before { content: attr(data-l); color: var(--muted); font-size: .88rem; }
}
@media (max-width: 640px) {
    body { font-size: 1rem; padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
    .hd-in { height: 70px; }
    .brand-ic { width: 40px; height: 40px; }
    .brand-logo { height: 44px; }
    .cards, .depts, .sits, .works, .mini-grid, .mock-row, .ft-grid, .ecard-cols { grid-template-columns: 1fr; }
    .ecard { grid-template-columns: 1fr; }
    .ecard .ess-swatch { aspect-ratio: 16 / 6; }
    .gables { grid-template-columns: 1fr 1fr; }
    .gables .g1 { grid-column: 1 / -1; }
    .gables .g2, .gables .g3 { margin-top: 0; }
    .spot { width: 34px; height: 34px; font-size: .85rem; }
    .faq-body { padding-left: 1.2rem; }
    .dock { left: 0; right: 0; bottom: 0; }
    .dock-in { border-radius: 0; border-left: 0; border-top: 4px solid var(--ochre); padding: .5rem .7rem calc(.5rem + env(safe-area-inset-bottom)); }
    .dock-txt, .dock-x { display: none; }
    .dock-tel, .dock-cta { flex: 1; justify-content: center; }
    .dock.is-mini .dock-tel span { display: inline; }
    .top { left: auto; right: .8rem; bottom: calc(84px + env(safe-area-inset-bottom)); }
    .ttabs-list { width: 100%; }
    .ttabs-list button { flex: 1; padding: .7rem .6rem; font-size: .9rem; }
}
