/* =========================================================
   BATI BRENNE — maquette
   Palette tirée des matériaux : chaux, pierre, chêne, terre cuite, ardoise.
   ========================================================= */

:root {
    --chaux:   #F1ECE3;
    --chaux-2: #E7DFD2;
    --papier:  #FBF9F5;
    --pierre:  #CBBDA3;
    --terre:   #A8482A;
    --terre-d: #8A3820;
    --terre-l: #E09474;
    --chene:   #4A3426;
    --ardoise: #1E1C1A;
    --ink-2:   #5B544B;
    --mousse:  #56614A;
    --line:    rgba(30, 28, 26, .18);
    --line-l:  rgba(241, 236, 227, .2);

    --f-display: 'Gloock', 'Georgia', serif;
    --f-body: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --gutter: clamp(16px, 4vw, 48px);
    --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
    margin: 0;
    background: var(--chaux);
    color: var(--ardoise);
    font-family: var(--f-body);
    font-size: 1.0625rem;
    line-height: 1.6;
    overflow-x: hidden;
}
/* grain léger façon mur à la chaux */
body::before {
    content: "";
    position: fixed; inset: 0;
    pointer-events: none;
    z-index: 100;
    opacity: .28;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .4 0 0 0 0 .33 0 0 0 .35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--terre); outline-offset: 3px; }

.wrap { max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); }

.skip {
    position: absolute; left: 8px; top: -60px; z-index: 200;
    background: var(--ardoise); color: var(--chaux); padding: .6rem 1rem;
}
.skip:focus { top: 8px; }

/* ---------- utilitaires typo ---------- */
.kicker {
    display: flex; align-items: center; gap: .75rem;
    font-stretch: 75%; font-weight: 600; text-transform: uppercase;
    letter-spacing: .14em; font-size: .78rem; color: var(--ink-2);
    margin-bottom: 1.5rem;
}
.kicker::before { content: ""; width: 28px; height: 2px; background: var(--terre); flex: none; }
.kicker--light { color: var(--pierre); }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
    background: var(--terre); color: #fff;
    padding: 1rem 1.6rem;
    font-stretch: 80%; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .85rem;
    text-decoration: none; border: 0; cursor: pointer;
    transition: background .25s;
}
.btn::after { content: "→"; transition: transform .25s var(--ease); }
.btn:hover { background: var(--ardoise); }
.btn:hover::after { transform: translateX(4px); }
.btn--full { width: 100%; }

.link-arrow {
    font-stretch: 80%; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .85rem;
    text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px;
}
.link-arrow::after { content: " ↓"; }
.link-arrow:hover { color: var(--terre); }

/* ---------- topbar & header ---------- */
.topbar { background: var(--ardoise); color: var(--pierre); font-size: .78rem; font-stretch: 80%; letter-spacing: .06em; text-transform: uppercase; }
.topbar__in { display: flex; justify-content: space-between; gap: 1rem; padding-block: .5rem; }
.topbar a { color: var(--chaux); text-decoration: none; font-weight: 700; }

.header {
    position: sticky; top: 0; z-index: 50;
    background: var(--chaux);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .3s;
}
.header.is-scrolled { box-shadow: 0 6px 24px -18px rgba(30, 28, 26, .5); }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 2rem; height: 76px; }

.logo { display: flex; align-items: center; gap: .8rem; text-decoration: none; position: relative; z-index: 60; transition: color .3s; }
.logo__mark { width: 40px; height: 30px; fill: currentColor; flex: none; }
.logo__accent { fill: var(--terre); }
.logo__txt { display: flex; flex-direction: column; line-height: 1; }
.logo__name { font-family: var(--f-display); font-size: 1.55rem; letter-spacing: .01em; }
.logo__sub { font-stretch: 75%; text-transform: uppercase; letter-spacing: .2em; font-size: .64rem; font-weight: 600; margin-top: .3rem; color: var(--ink-2); }

.nav ul { display: flex; align-items: center; gap: 2rem; }
.nav a {
    text-decoration: none; font-stretch: 80%; font-weight: 600; text-transform: uppercase;
    letter-spacing: .1em; font-size: .82rem; position: relative; padding-block: .4rem;
}
.nav li:not(.nav__cta) a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
    background: var(--terre); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav li:not(.nav__cta) a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
.nav__cta a { background: var(--ardoise); color: var(--chaux); padding: .8rem 1.2rem; }
.nav__cta a:hover { background: var(--terre); }
.nav__foot { display: none; }

.burger {
    display: none; align-items: center; gap: .7rem;
    background: none; border: 0; cursor: pointer; padding: .5rem 0;
    position: relative; z-index: 60;
    font-stretch: 80%; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem;
}
.burger__lines { width: 26px; height: 12px; position: relative; }
.burger__lines i { position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform .3s var(--ease), top .3s; }
.burger__lines i:first-child { top: 0; }
.burger__lines i:last-child { top: 10px; }
.nav-open .burger__lines i:first-child { top: 5px; transform: rotate(45deg); }
.nav-open .burger__lines i:last-child { top: 5px; transform: rotate(-45deg); }

@media (max-width: 960px) {
    .burger { display: flex; }
    .nav {
        position: fixed; inset: 0; z-index: 55;
        background: var(--ardoise); color: var(--chaux);
        padding: 120px var(--gutter) 32px;
        display: flex; flex-direction: column; justify-content: space-between;
        transform: translateY(-100%); visibility: hidden;
        transition: transform .5s var(--ease), visibility 0s .5s;
        overflow-y: auto;
    }
    .nav-open .nav { transform: none; visibility: visible; transition: transform .5s var(--ease); }
    .nav-open { overflow: hidden; }
    .nav-open .logo, .nav-open .burger { color: var(--chaux); }
    .nav-open .logo__sub { color: var(--pierre); }
    .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
    .nav li { border-bottom: 1px solid var(--line-l); }
    .nav a {
        display: block; font-family: var(--f-display); text-transform: none; letter-spacing: 0;
        font-stretch: 100%; font-weight: 400; font-size: clamp(2rem, 8vw, 3rem); padding-block: .9rem;
    }
    .nav li:not(.nav__cta) a::after { display: none; }
    .nav__cta { border: 0 !important; margin-top: 1.5rem; }
    .nav__cta a { background: var(--terre); font-size: 1.4rem; padding: 1rem 1.2rem; }
    .nav__foot { display: flex; flex-direction: column; gap: .3rem; margin-top: 2rem; font-size: .95rem; color: var(--pierre); }
    .nav__foot a { font-family: var(--f-body); font-size: 1.1rem; color: var(--chaux); padding: 0; text-transform: none; font-weight: 700; }
}

/* ---------- HERO ---------- */
.hero { padding-top: clamp(32px, 6vw, 80px); }
.hero__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero__text { grid-column: 1 / 7; }
.hero__visual { grid-column: 7 / 13; }
.hero__title {
    font-family: var(--f-display);
    font-size: clamp(2.5rem, 5.4vw, 5rem);
    line-height: 1.02; letter-spacing: -.012em;
    margin-bottom: 1.6rem;
    text-wrap: balance;
}
.hero__underline {
    color: var(--terre);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 14' preserveAspectRatio='none'%3E%3Cpath d='M2 9 C 60 3, 120 12, 180 6 S 270 4, 298 8' fill='none' stroke='%23A8482A' stroke-width='3' stroke-linecap='round' opacity='.55'/%3E%3C/svg%3E") left bottom / 100% .28em no-repeat;
    padding-bottom: .1em;
}
.hero__lead { font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: var(--ink-2); max-width: 46ch; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 2rem; }
.hero__hint { margin: .7rem 0 0; font-size: .8rem; font-stretch: 80%; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-2); text-align: right; }

/* légende des matériaux */
.legend {
    display: grid; grid-template-columns: repeat(4, 1fr);
    margin: clamp(40px, 6vw, 80px) 0 0;
    border-top: 2px solid var(--ardoise); border-bottom: 1px solid var(--line);
}
.legend > div { padding: 1.1rem 1.2rem; border-left: 1px solid var(--line); }
.legend > div:first-child { border-left: 0; padding-left: 0; }
.legend dt { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-stretch: 85%; text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; }
.legend dd { margin: .2rem 0 0; color: var(--ink-2); font-size: .9rem; padding-left: calc(14px + .6rem); }
.sw { width: 14px; height: 14px; flex: none; display: inline-block; outline: 1px solid rgba(0,0,0,.25); outline-offset: -1px; }
.sw--chaux  { background: #EDE6D8; }
.sw--pierre { background: #C8B48F; }
.sw--chene  { background: #6B4A31; }
.sw--terre  { background: var(--terre); }

/* ---------- AVANT / APRÈS ---------- */
.ba {
    --pos: 50%;
    position: relative; overflow: hidden; margin: 0;
    aspect-ratio: 4 / 3; background: var(--chene);
    user-select: none; -webkit-user-select: none;
}
.ba--hero { aspect-ratio: 4 / 5; }
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__before .ba__img { filter: grayscale(.85) contrast(.8) brightness(.9) sepia(.12); }
.ba__cement {
    position: absolute; inset: 0;
    background: url("../img/texture-lisse.jpg") center / cover;
    mix-blend-mode: luminosity; opacity: .72;
}
.ba__tag {
    position: absolute; top: 14px; z-index: 2;
    font-stretch: 75%; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .7rem;
    padding: .35rem .6rem; pointer-events: none;
}
.ba__tag--before { left: 14px; background: var(--ardoise); color: var(--chaux); }
.ba__tag--after  { right: 14px; background: var(--chaux); color: var(--ardoise); }
.ba__handle {
    position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 2;
    width: 2px; margin-left: -1px; background: var(--chaux); pointer-events: none;
}
.ba__handle span {
    position: absolute; top: 50%; left: 50%; width: 46px; height: 46px;
    transform: translate(-50%, -50%);
    background: var(--chaux); border: 2px solid var(--ardoise);
    display: grid; place-items: center;
}
.ba__handle span::before { content: "◂ ▸"; font-size: .8rem; letter-spacing: .05em; color: var(--ardoise); }
.ba__range {
    position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%;
    margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none;
}
.ba__range::-webkit-slider-thumb { -webkit-appearance: none; width: 48px; height: 100vh; }
.ba:has(.ba__range:focus-visible) .ba__handle span { outline: 3px solid var(--terre); outline-offset: 2px; }

/* ---------- SECTIONS ---------- */
.section { padding-block: clamp(64px, 10vw, 140px); }
.section--tint { background: var(--chaux-2); }

.sec-head {
    display: grid; grid-template-columns: 72px 1fr minmax(0, 380px);
    align-items: end; gap: 1rem 2rem;
    padding-bottom: 1.6rem; border-bottom: 2px solid var(--ardoise);
    margin-bottom: clamp(24px, 4vw, 48px);
}
.sec-head__num {
    font-stretch: 75%; font-weight: 700; font-size: .85rem; letter-spacing: .14em;
    color: var(--terre); align-self: start; padding-top: .7rem;
}
.sec-head__title { font-family: var(--f-display); font-size: clamp(2.1rem, 4.6vw, 3.9rem); line-height: 1.02; letter-spacing: -.01em; }
.sec-head__txt { margin: 0; color: var(--ink-2); }
.sec-head--stack { display: block; border: 0; padding: 0; }
.sec-head--stack .sec-head__num { display: block; padding: 0 0 .8rem; }
.sec-head--light { border-color: var(--chaux); }
.sec-head--light .sec-head__num { color: var(--terre-l); }
.sec-head--light .sec-head__txt { color: var(--pierre); }

/* ---------- MÉTIERS : index ---------- */
.index__row { border-bottom: 1px solid var(--line); }
.index__row a {
    display: grid;
    grid-template-columns: 72px minmax(0, 1.1fr) minmax(0, 1.3fr) minmax(0, .8fr) 40px;
    align-items: center; gap: 2rem;
    padding: 1.6rem 0; text-decoration: none;
    transition: padding .35s var(--ease), background .35s;
}
.index__n { font-stretch: 75%; font-weight: 700; letter-spacing: .1em; color: var(--ink-2); transition: color .3s; }
.index__t { font-family: var(--f-display); font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1.05; }
.index__d { color: var(--ink-2); font-size: .98rem; }
.index__m { font-stretch: 75%; text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; font-weight: 600; color: var(--chene); }
.index__go { font-size: 1.4rem; justify-self: end; transition: transform .35s var(--ease); }
.index__thumb { display: none; }
.index__row a:hover { padding-left: 1rem; background: var(--chaux-2); }
.index__row a:hover .index__n, .index__row a:hover .index__go { color: var(--terre); }
.index__row a:hover .index__go { transform: translateX(-1rem); }

.index__preview {
    position: fixed; top: 0; left: 0; z-index: 40;
    width: 300px; aspect-ratio: 4 / 3; pointer-events: none;
    opacity: 0; transform: translate(-50%, -50%) scale(.9) rotate(-2deg);
    transition: opacity .25s, transform .35s var(--ease);
    border: 6px solid var(--papier); box-shadow: 0 20px 40px -20px rgba(0,0,0,.5);
}
.index__preview img { width: 100%; height: 100%; object-fit: cover; }
.index__preview.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-2deg); }

@media (max-width: 1100px) {
    .index__row a { grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.2fr) 32px; }
    .index__m { display: none; }
}
@media (max-width: 760px) {
    .index__row a {
        grid-template-columns: 76px 1fr 20px;
        grid-template-areas: "thumb n go" "thumb t go" "thumb d go";
        gap: .15rem 1rem; padding: 1.1rem 0;
    }
    .index__row a:hover { padding-left: 0; background: none; }
    .index__thumb { display: block; grid-area: thumb; width: 76px; height: 76px; object-fit: cover; align-self: start; }
    .index__n { grid-area: n; font-size: .75rem; }
    .index__t { grid-area: t; font-size: 1.45rem; }
    .index__d { grid-area: d; font-size: .9rem; line-height: 1.45; }
    .index__go { grid-area: go; font-size: 1.1rem; align-self: center; }
    .index__preview { display: none; }
}

/* ---------- ANATOMIE D'UN ENDUIT ---------- */
.chaux { background: var(--ardoise); color: var(--chaux); }

.strates { display: flex; height: clamp(420px, 52vw, 560px); }
.strate {
    flex: 1; position: relative; overflow: hidden;
    border: 0; padding: 0; cursor: pointer; text-align: left;
    background-size: cover; background-position: center;
    transition: flex .6s var(--ease);
    border-right: 1px solid rgba(0,0,0,.35);
}
.strate:last-child { border-right: 0; }
.strate.is-active { flex: 4.5; cursor: default; }
.strate--support  { background-image: url("../img/pierres-seches.jpg"); }
.strate--piquage  { background-image: url("../img/pierre-taille.jpg"); background-color: #3d342b; background-blend-mode: multiply; }
.strate--gobetis  { background-image: url("../img/texture-lisse.jpg"); background-color: #9C8F7B; background-blend-mode: multiply; background-size: 260%; }
.strate--corps    { background-image: url("../img/texture-lisse.jpg"); background-color: #D8CCB7; background-blend-mode: multiply; }
.strate--finition { background-image: url("../img/texture-brosse.jpg"); background-color: #F3ECDF; background-blend-mode: multiply; }

.strate__n {
    position: absolute; top: 16px; left: 16px;
    width: 34px; height: 34px; display: grid; place-items: center;
    background: var(--chaux); color: var(--ardoise);
    font-family: var(--f-display); font-size: 1.1rem;
}
.strate.is-active .strate__n { background: var(--terre); color: #fff; }
.strate__body {
    position: absolute; left: 16px; right: 16px; bottom: 16px;
    color: var(--ardoise);
}
.strate__body strong {
    display: block; font-family: var(--f-display); font-weight: 400; font-size: 1.35rem; line-height: 1.1;
    writing-mode: vertical-rl; transform: rotate(180deg);
    background: var(--chaux); padding: .6rem .35rem; width: fit-content;
}
.strate__body > span { display: none; }
.strate.is-active .strate__body {
    max-width: 420px; background: var(--chaux); padding: 1.3rem 1.4rem;
    animation: rise .5s var(--ease) both .15s;
}
.strate.is-active .strate__body strong { writing-mode: horizontal-tb; transform: none; padding: 0; font-size: 1.7rem; margin-bottom: .5rem; }
.strate.is-active .strate__body > span { display: block; color: var(--ink-2); font-size: .98rem; line-height: 1.5; }
.strate:not(.is-active):hover { filter: brightness(1.1); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (max-width: 760px) {
    .strates { flex-direction: column; height: auto; }
    .strate { flex: none; min-height: 72px; border-right: 0; border-bottom: 1px solid rgba(0,0,0,.35); transition: min-height .5s var(--ease); }
    .strate.is-active { min-height: 320px; }
    .strate__n { top: 50%; transform: translateY(-50%); }
    .strate.is-active .strate__n { top: 16px; transform: none; }
    .strate__body { left: 62px; bottom: auto; top: 50%; transform: translateY(-50%); }
    .strate__body strong { writing-mode: horizontal-tb; transform: none; padding: .3rem .6rem; font-size: 1.2rem; }
    .strate.is-active .strate__body { left: 16px; top: auto; bottom: 16px; transform: none; }
}

/* nuancier */
.nuancier { margin-top: clamp(48px, 7vw, 88px); display: grid; grid-template-columns: 200px 1fr; gap: 2rem; align-items: start; }
.nuancier__label { font-stretch: 75%; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; color: var(--pierre); padding-top: .5rem; }
.nuancier__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 2vw, 24px); }
.swatch {
    position: relative; background: var(--papier); color: var(--ardoise);
    padding: 10px 10px 14px; transition: transform .35s var(--ease);
}
.swatch:nth-child(odd)  { transform: rotate(-1.2deg); }
.swatch:nth-child(even) { transform: rotate(.9deg) translateY(10px); }
.swatch:hover { transform: rotate(0) translateY(-6px); }
.swatch::before {
    content: ""; position: absolute; top: 18px; right: 18px; z-index: 1;
    width: 12px; height: 12px; border-radius: 50%; background: var(--ardoise);
}
.swatch__tex { display: block; aspect-ratio: 1; background-size: cover; background-position: center; }
.swatch__tex--lisse   { background-image: url("../img/texture-lisse.jpg"); background-color: #EEE6D8; background-blend-mode: multiply; background-size: 340%; }
.swatch__tex--brosse  { background-image: url("../img/texture-brosse.jpg"); background-color: #DFCFB3; background-blend-mode: multiply; }
.swatch__tex--gratte  { background-image: url("../img/texture-lisse.jpg"); background-color: #CDB894; background-blend-mode: multiply; background-size: 140%; filter: contrast(1.25); }
.swatch__tex--pierres { background-image: linear-gradient(rgba(236, 228, 214, .55), rgba(236, 228, 214, .55)), url("../img/pierres-seches.jpg"); }
.swatch__ref { display: block; margin-top: .7rem; font-stretch: 75%; font-weight: 700; letter-spacing: .12em; font-size: .7rem; color: var(--terre); }
.swatch strong { display: block; font-family: var(--f-display); font-weight: 400; font-size: 1.15rem; line-height: 1.15; }

@media (max-width: 900px) {
    .nuancier { grid-template-columns: 1fr; gap: 1rem; }
    .nuancier__list { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- RÉALISATIONS ---------- */
.works { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 4vw, 48px) clamp(16px, 3vw, 40px); }
.work--wide { grid-column: 1 / -1; display: grid; grid-template-columns: 2fr 1fr; gap: clamp(16px, 3vw, 40px); align-items: end; }
.work--wide .ba { aspect-ratio: 16 / 10; }
.work__meta { padding-top: 1rem; }
.work--wide .work__meta { border-top: 2px solid var(--ardoise); }
.work__tag { display: inline-block; font-stretch: 75%; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; color: var(--terre); margin-bottom: .4rem; }
.work h3 { font-family: var(--f-display); font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.1; margin-bottom: .5rem; }
.work p { color: var(--ink-2); margin: 0; }
.work__img { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.work__img img { width: 100%; height: 100%; object-fit: cover; }

.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: clamp(48px, 6vw, 80px); }
.strip__item { text-decoration: none; display: block; }
.strip__item img { aspect-ratio: 3 / 4; width: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .4s; filter: saturate(.85); }
.strip__item { overflow: hidden; }
.strip__item:hover img { transform: scale(1.04); filter: saturate(1); }
.strip__item span { display: block; padding-top: .6rem; font-size: .9rem; font-weight: 600; }
.strip__item span::before { content: "↗ "; color: var(--terre); }

@media (max-width: 860px) {
    .works, .work--wide { grid-template-columns: 1fr; }
    .work--wide .ba { aspect-ratio: 4 / 3; }
    .strip {
        grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%;
        overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px;
        margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter);
    }
    .strip__item { scroll-snap-align: start; }
}

/* ---------- L'ENTREPRISE ---------- */
.entreprise { background: var(--chaux-2); }
.entreprise__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.entreprise__img { margin: 0; }
.entreprise__img img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; }
.entreprise__img figcaption { font-size: .82rem; color: var(--ink-2); padding-top: .6rem; border-top: 1px solid var(--line); margin-top: .8rem; }
.big { font-family: var(--f-display); font-size: clamp(1.45rem, 2.4vw, 2.15rem); line-height: 1.2; margin: 1rem 0 1.4rem; }
.big em { font-style: normal; color: var(--terre); }
.entreprise__text > p:not(.big) { color: var(--ink-2); max-width: 60ch; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 2rem; border-top: 2px solid var(--ardoise); }
.facts li { padding: 1rem 1rem 0 0; }
.facts li + li { padding-left: 1rem; border-left: 1px solid var(--line); }
.facts strong { display: block; font-stretch: 80%; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; }
.facts span { font-size: .9rem; color: var(--ink-2); }

@media (max-width: 860px) {
    .entreprise__grid { grid-template-columns: 1fr; }
    .entreprise__img img { aspect-ratio: 16 / 11; }
    .facts { grid-template-columns: 1fr; }
    .facts li, .facts li + li { padding: .9rem 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- TERRITOIRE ---------- */
.territoire { position: relative; min-height: clamp(520px, 70vw, 760px); display: flex; align-items: flex-end; overflow: hidden; }
.territoire__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.territoire__in { position: relative; width: 100%; padding-block: clamp(24px, 5vw, 64px); }
.territoire__card { background: var(--ardoise); color: var(--chaux); max-width: 540px; padding: clamp(24px, 4vw, 44px); }
.territoire__card h2 { font-family: var(--f-display); font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.05; margin-bottom: 1rem; }
.territoire__card p { color: var(--pierre); }
.villes { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.2rem; }
.villes li { border: 1px solid var(--line-l); padding: .25rem .6rem; font-size: .82rem; }

/* ---------- PANNEAU DE CHANTIER ---------- */
.contact-teaser__grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.contact-teaser__text p { color: var(--ink-2); font-size: 1.1rem; max-width: 42ch; margin: 1rem 0 2rem; }
.panneau {
    background-color: var(--papier);
    background-image:
        radial-gradient(circle at 14px 14px, #8d857a 3px, transparent 4px),
        radial-gradient(circle at calc(100% - 14px) 14px, #8d857a 3px, transparent 4px),
        radial-gradient(circle at 14px calc(100% - 14px), #8d857a 3px, transparent 4px),
        radial-gradient(circle at calc(100% - 14px) calc(100% - 14px), #8d857a 3px, transparent 4px);
    border: 3px solid var(--ardoise);
    padding: 34px clamp(20px, 3vw, 40px);
    box-shadow: 0 30px 50px -40px rgba(30, 28, 26, .6);
}
.panneau__head {
    background: var(--ardoise); color: var(--chaux); margin: 0 0 1rem;
    padding: .6rem .9rem; font-stretch: 75%; font-weight: 700; text-transform: uppercase; letter-spacing: .18em; font-size: .78rem;
}
.panneau dl { margin: 0; }
.panneau dl > div { display: grid; grid-template-columns: 170px 1fr; gap: 1rem; padding: .75rem 0; border-bottom: 1px dashed var(--line); }
.panneau dl > div:last-child { border-bottom: 0; }
.panneau dt { font-stretch: 75%; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: .74rem; color: var(--ink-2); padding-top: .2rem; }
.panneau dd { margin: 0; font-weight: 600; }
.panneau dd a { text-decoration: none; border-bottom: 1px solid var(--terre); }
.panneau dd a:hover { color: var(--terre); }
.panneau small { font-weight: 400; color: var(--ink-2); margin-left: .3rem; }
.panneau--compact { margin-top: 2rem; }
.panneau--compact dl > div { grid-template-columns: 110px 1fr; }

@media (max-width: 860px) {
    .contact-teaser__grid { grid-template-columns: 1fr; }
    .contact-teaser__text { order: -1; }
}
@media (max-width: 520px) {
    .panneau dl > div, .panneau--compact dl > div { grid-template-columns: 1fr; gap: .1rem; }
    .panneau small { display: block; margin: 0; }
}

/* ---------- PAGE MÉTIER ---------- */
.mhero { padding-top: clamp(32px, 5vw, 64px); }
.mhero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: end; }
.mhero__title { font-family: var(--f-display); font-size: clamp(2.6rem, 6.4vw, 5.6rem); line-height: .98; letter-spacing: -.015em; margin-bottom: 1.4rem; }
.mhero__img { margin: 0; }
.mhero__img img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; }
.crumbs { font-size: .82rem; color: var(--ink-2); margin-bottom: 2rem; }
.crumbs a { text-decoration: none; border-bottom: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li { border: 1px solid var(--ardoise); padding: .35rem .75rem; font-stretch: 75%; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; }

.presta { display: grid; grid-template-columns: 4fr 8fr; gap: 2rem; }
.presta__list { border-top: 2px solid var(--ardoise); }
.presta__list li { display: grid; grid-template-columns: 56px 1fr; padding: 1.1rem 0; border-bottom: 1px solid var(--line); font-size: clamp(1.05rem, 1.5vw, 1.25rem); }
.presta__list span { font-stretch: 75%; font-weight: 700; color: var(--terre); letter-spacing: .1em; font-size: .85rem; padding-top: .25rem; }
.works--metier .work p { padding-top: .2rem; }

.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap; background: var(--terre); color: #fff; padding-block: clamp(28px, 4vw, 48px); }
.cta-band__txt { font-family: var(--f-display); font-size: clamp(1.5rem, 3vw, 2.4rem); line-height: 1.1; margin: 0; max-width: 24ch; }
.cta-band .btn { background: var(--ardoise); }
.cta-band .btn:hover { background: #000; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: clamp(32px, 5vw, 64px); }
.pager a { text-decoration: none; border-top: 2px solid var(--ardoise); padding-top: 1rem; font-family: var(--f-display); font-size: clamp(1.2rem, 2.4vw, 1.8rem); line-height: 1.1; }
.pager small { display: block; font-family: var(--f-body); font-stretch: 75%; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; color: var(--ink-2); margin-bottom: .4rem; }
.pager a:hover { color: var(--terre); }
.pager__next { text-align: right; }

@media (max-width: 860px) {
    .mhero__grid, .presta { grid-template-columns: 1fr; }
    .mhero__img { order: -1; }
    .mhero__img img { aspect-ratio: 16 / 11; }
}

/* ---------- PAGE CONTACT ---------- */
.contact-page__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.form-wrap { background: var(--papier); border-top: 4px solid var(--ardoise); padding: clamp(20px, 4vw, 44px); }
.f-row { display: flex; flex-direction: column; margin-bottom: 1.2rem; }
.f-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; }
.form label { font-stretch: 75%; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .74rem; margin-bottom: .4rem; }
.form input[type=text], .form input[type=tel], .form input[type=email], .form select, .form textarea {
    font: inherit; font-size: 16px; color: var(--ardoise);
    background: var(--chaux); border: 1px solid rgba(30, 28, 26, .35); border-radius: 0;
    padding: .85rem .9rem; width: 100%;
}
.form textarea { resize: vertical; min-height: 140px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--terre); outline-offset: 0; border-color: var(--terre); }
.form [aria-invalid=true] { border-color: var(--terre-d); background: #F6E7E0; }
.f-check { display: grid; grid-template-columns: 22px 1fr; gap: .7rem; margin: .4rem 0 1.6rem; }
.f-check input { width: 20px; height: 20px; accent-color: var(--terre); margin: 2px 0 0; }
.f-check label { text-transform: none; letter-spacing: 0; font-stretch: 100%; font-weight: 400; font-size: .9rem; color: var(--ink-2); }
.f-check .f-err { grid-column: 2; }
.f-err { color: var(--terre-d); font-size: .85rem; margin: .35rem 0 0; font-weight: 600; }
.f-err--top { margin-bottom: 1rem; }
.f-ok { background: var(--mousse); color: #fff; padding: 1.2rem 1.4rem; margin-bottom: 1.5rem; }
.f-ok p { margin: .3rem 0 0; opacity: .9; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 860px) {
    .contact-page__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .f-cols { grid-template-columns: 1fr; }
}

/* ---------- FOOTER ---------- */
.footer { background: var(--ardoise); color: var(--chaux); padding-block: clamp(56px, 8vw, 110px) 28px; }
.footer .footer__devise { color: var(--chaux); font-family: var(--f-display); font-size: clamp(1.8rem, 4.2vw, 3.6rem); line-height: 1.08; max-width: 22ch; padding-bottom: clamp(32px, 5vw, 64px); margin-bottom: clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--line-l); }
.footer__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.footer__h { font-family: var(--f-body); font-stretch: 75%; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; color: var(--terre-l); margin-bottom: .8rem; }
.footer p { color: var(--pierre); font-size: .95rem; }
.footer a { text-decoration: none; color: var(--chaux); }
.footer a:hover { color: var(--terre-l); }
.footer__list li { font-size: .95rem; margin-bottom: .25rem; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid var(--line-l); font-size: .8rem; color: var(--pierre); }
.footer__note { color: var(--terre-l); }

@media (max-width: 860px) {
    .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
    .footer__grid { grid-template-columns: 1fr; }
}

/* ---------- RESPONSIVE GLOBAL ---------- */
@media (max-width: 960px) {
    .hero__grid { grid-template-columns: 1fr; }
    .hero__text, .hero__visual { grid-column: auto; }
    .ba--hero { aspect-ratio: 4 / 3.4; }
    .sec-head { grid-template-columns: 1fr; gap: .6rem; }
    .sec-head__num { padding: 0; }
}
@media (max-width: 760px) {
    .legend { grid-template-columns: 1fr 1fr; }
    .legend > div:nth-child(odd) { border-left: 0; padding-left: 0; }
    .legend > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .topbar__in span { font-size: .7rem; }
}
@media (max-width: 420px) {
    .topbar__in span { display: none; }
    .topbar__in { justify-content: flex-end; }
    .legend dd { padding-left: 0; }
}

/* ---------- apparition au défilement ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
    .js [data-reveal] { opacity: 1; transform: none; }
}
