/* Atelier Boisdor — site de démonstration (Studio Emy). Identité propre : chêne, charbon, copeaux, vert forêt, traits de cote. */
@font-face {
  font-family: "Outfit"; font-style: normal; font-weight: 200 600; font-display: swap;
  src: url("/assets/fonts/outfit-latin.woff2") format("woff2");
}

:root {
  --char: #22201D;
  --char-2: #2C2925;
  --char-3: #3A3631;
  --oak: #C08A4E;
  --oak-2: #DDB27C;
  --oak-3: #8A5C2B;
  --saw: #F6F1E9;
  --paper: #FBF8F3;
  --forest: #2F4A3A;
  --forest-2: #3D5E4B;
  --ink: #22201D;
  --muted: #6B6258;
  --line: rgba(34, 32, 29, .13);
  --line-light: rgba(246, 241, 233, .16);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Outfit", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.008 .22' numOctaves='3' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .22 0 0 0 0 .1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 300 1.05rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--sans); font-weight: 500; letter-spacing: -.035em; line-height: 1.02; }
h1 em, h2 em, h3 em, .outro-title em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; color: var(--oak); }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { display: inline-flex; align-items: center; gap: .65rem; margin-bottom: 1.1rem; font-family: var(--mono); font-size: .74rem; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--oak-3); }
.eyebrow::before { content: ""; width: 26px; height: 9px; flex: none; background: linear-gradient(currentColor, currentColor) 0 50% / 100% 1px no-repeat, linear-gradient(currentColor, currentColor) 0 0 / 1px 100% no-repeat, linear-gradient(currentColor, currentColor) 100% 0 / 1px 100% no-repeat; }
.hint { font-size: .88rem; color: var(--muted); }
section { position: relative; }
:focus-visible { outline: 2px solid var(--oak); outline-offset: 3px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 50px; padding: .8rem 1.45rem; border: 0; border-radius: 8px; font-size: .95rem; font-weight: 450; text-decoration: none; cursor: pointer; transition: transform .35s var(--ease), background .3s, box-shadow .35s, color .3s; }
.btn:hover { transform: translateY(-2px); }
.btn-oak { background: var(--oak); color: var(--char); box-shadow: 0 14px 30px -16px rgba(192, 138, 78, .9), inset 0 -2px 0 rgba(0, 0, 0, .15); }
.btn-oak:hover { background: var(--oak-2); }
.btn-glass { background: rgba(20, 19, 17, .38); color: var(--saw); box-shadow: inset 0 0 0 1px rgba(246, 241, 233, .38); }
.btn-glass:hover { background: rgba(246, 241, 233, .2); }
.btn-forest { background: var(--forest); color: var(--saw); }
.btn-forest:hover { background: var(--forest-2); }
.btn-ghost { background: none; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn-line-dark { background: none; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn-small { min-height: 42px; padding: .5rem 1.05rem; font-size: .88rem; }
.btn[hidden] { display: none; }

/* Bandeau de démonstration */
.demo-bar { position: relative; z-index: 60; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .55rem clamp(1rem, 4vw, 2.5rem); background: #141311; color: rgba(246, 241, 233, .75); font-size: .82rem; }
.demo-bar p { display: flex; align-items: center; gap: .6rem; margin: 0; min-width: 0; }
.demo-bar strong { color: var(--oak-2); font-weight: 450; white-space: nowrap; }
.demo-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-bar a { flex: none; color: var(--saw); font-weight: 450; text-decoration: none; }
.demo-bar a:hover { color: var(--oak-2); }
.demo-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--oak); box-shadow: 0 0 0 4px rgba(192, 138, 78, .22); }
@media (max-width: 760px) { .demo-text { display: none; } }

/* En-tête, avec le mètre ruban qui suit la lecture */
.top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem); height: 72px; padding: 0 clamp(1rem, 4vw, 2.5rem); color: var(--saw); background: rgba(34, 32, 29, 0); transition: background-color .4s, box-shadow .4s; }
.top.is-solid { background: rgba(34, 32, 29, .97); box-shadow: 0 10px 40px -20px rgba(0, 0, 0, .6); }
.brand { display: inline-flex; align-items: center; gap: .7rem; margin: 0; font-size: 1.12rem; font-weight: 500; letter-spacing: -.02em; text-decoration: none; line-height: 1.15; }
.brand small { display: block; font-family: var(--mono); font-size: .62rem; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--oak-2); }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 8px; background: var(--saw); color: var(--char); }
.brand-mark svg { width: 100%; height: 100%; }
.brand-mark path { fill: none; stroke: var(--oak); stroke-width: 1.6; }
.brand-mark text { fill: var(--char); font-family: var(--serif); font-size: 20px; font-style: italic; }
.top nav { margin-left: auto; }
.top nav ul { display: flex; gap: 1.8rem; }
.top nav a { position: relative; font-size: .92rem; text-decoration: none; color: rgba(246, 241, 233, .82); transition: color .3s; }
.top nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--oak); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.top nav a:hover { color: var(--saw); }
.top nav a:hover::after { transform: scaleX(1); }
.tape { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; opacity: 0; transition: opacity .4s; background: repeating-linear-gradient(90deg, rgba(246, 241, 233, .28) 0 1px, transparent 1px 10px); }
.top.is-solid .tape { opacity: 1; }
.tape-fill { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, var(--char) 0 1px, transparent 1px 10px), var(--oak); transform: scaleX(var(--sp, 0)); transform-origin: left; }
@media (max-width: 980px) { .top nav { display: none; } .top .btn { margin-left: auto; } }
@media (max-width: 520px) { .top .btn { display: none; } .brand small { display: none; } }

/* Accueil plein écran */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 2rem; margin-top: -72px; min-height: calc(100svh - 2.3rem); padding: 8rem clamp(1rem, 4vw, 3rem) clamp(4.5rem, 9vh, 6.5rem); color: var(--saw); overflow: hidden; isolation: isolate; background: var(--char); }
.hero-bg { position: absolute; inset: -4% 0 0; z-index: -2; will-change: transform; transform: scale(calc(1.05 + var(--p, 0) * .12)) translateY(calc(var(--p, 0) * 6%)); transform-origin: 50% 60%; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; animation: kenburns 20s var(--ease) both; }
@keyframes kenburns { from { opacity: .35; } to { opacity: 1; } }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 19, 17, .6) 0%, rgba(20, 19, 17, .05) 30%, rgba(20, 19, 17, .2) 55%, rgba(20, 19, 17, .88) 100%), linear-gradient(90deg, rgba(20, 19, 17, .62), transparent 70%); opacity: calc(1 + var(--p, 0) * .4); }
.hero-shade::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 55% at 70% 25%, rgba(221, 178, 124, .45), transparent 70%); mix-blend-mode: soft-light; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5; background-image: var(--grain); background-size: 600px 300px; mix-blend-mode: overlay; }
.hero .eyebrow { color: var(--oak-2); }
.hero-content { max-width: 800px; transform: translateY(calc(var(--p, 0) * -60px)); opacity: calc(1 - var(--p, 0) * 1.4); }
.hero h1 { font-size: clamp(3.3rem, min(10.5vw, 16vh), 9.4rem); line-height: .9; letter-spacing: -.055em; text-shadow: 0 10px 40px rgba(0, 0, 0, .25); }
.hero h1 em { display: inline-block; padding-right: .05em; color: var(--oak-2); }
.hero-dim { display: block; width: min(100%, 560px); height: 22px; margin: 1.1rem 0 1.4rem; overflow: visible; }
.hero-dim path { fill: none; stroke: var(--oak-2); stroke-width: 1.3; vector-effect: non-scaling-stroke; }
.hero-dim .dim-end { fill: var(--oak-2); }
.js .hero-dim .dim-line { stroke-dasharray: 400; stroke-dashoffset: 400; transition: stroke-dashoffset 1.6s var(--ease) .5s; }
.js .hero-dim.is-visible .dim-line { stroke-dashoffset: 0; }
.hero .lead { max-width: 48ch; font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: rgba(246, 241, 233, .88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero-sheet { width: 270px; padding: 1rem 1.1rem 1.1rem; border-radius: 6px; background: rgba(20, 19, 17, .72); box-shadow: inset 0 0 0 1px rgba(246, 241, 233, .2); font-size: .88rem; opacity: calc(1 - var(--p, 0) * 1.6); }
.sheet-title { display: flex; justify-content: space-between; margin: 0 0 .6rem; padding-bottom: .55rem; border-bottom: 1px dashed rgba(246, 241, 233, .3); font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--oak-2); }
.hero-sheet dl { display: grid; gap: .35rem; margin: 0 0 .9rem; }
.hero-sheet dl div { display: flex; justify-content: space-between; gap: 1rem; }
.hero-sheet dt { color: rgba(246, 241, 233, .6); }
.hero-sheet dd { margin: 0; text-align: right; }
.status { display: inline-flex; align-items: center; gap: .55rem; margin: 0; font-size: .84rem; color: rgba(246, 241, 233, .92); }
.status:empty { display: none; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #D9785F; }
.status.is-open::before { background: #7FCB95; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(127, 203, 149, .55); } 70% { box-shadow: 0 0 0 9px rgba(127, 203, 149, 0); } 100% { box-shadow: 0 0 0 0 rgba(127, 203, 149, 0); } }
.scroll-cue { position: absolute; left: 50%; bottom: 1.4rem; width: 1px; height: 48px; margin-left: -1px; background: rgba(246, 241, 233, .25); opacity: calc(1 - var(--p, 0) * 3); }
.scroll-cue span { position: absolute; left: -3px; top: 0; width: 7px; height: 1px; background: var(--saw); box-shadow: 0 12px 0 rgba(246, 241, 233, .6), 0 24px 0 rgba(246, 241, 233, .4), 0 36px 0 rgba(246, 241, 233, .2); animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-bottom: 5.5rem; }
  .hero-sheet { width: 100%; max-width: 420px; }
  .scroll-cue { display: none; }
}

/* Titres qui apparaissent mot à mot */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .1em; margin-bottom: -.1em; }
[data-split] .w > span { display: inline-block; }
.js [data-split] .w > span { transform: translateY(108%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 55ms); }
.js [data-split].is-visible .w > span { transform: none; }

/* Bandeau des essences et assemblages, sur fond de fil du bois */
.marquee { position: relative; overflow: hidden; padding: 1.05rem 0; background: var(--grain) 0 0 / 500px 250px, var(--oak); color: var(--char); }
.marquee-track { display: flex; align-items: center; gap: 1.6rem; width: max-content; animation: marquee 42s linear infinite; font-size: clamp(1.05rem, 1.8vw, 1.35rem); font-weight: 450; letter-spacing: -.01em; white-space: nowrap; }
.marquee-track span:nth-child(4n+1) { font-family: var(--serif); font-style: italic; font-weight: 400; }
.marquee i { width: 22px; height: 12px; flex: none; background: linear-gradient(currentColor, currentColor) 0 50% / 100% 1px no-repeat, linear-gradient(currentColor, currentColor) 0 0 / 1px 100% no-repeat, linear-gradient(currentColor, currentColor) 100% 0 / 1px 100% no-repeat; opacity: .5; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* L'atelier */
.intro { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; max-width: 1240px; margin: 0 auto; padding: clamp(4rem, 9vw, 7.5rem) clamp(1rem, 4vw, 2.5rem); }
.intro h2 { font-size: clamp(2.2rem, 4.8vw, 4rem); margin-bottom: 1.4rem; }
.intro-lead { max-width: 56ch; font-size: clamp(1.05rem, 1.4vw, 1.18rem); color: #4E473F; }
.team { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; margin-top: 1.8rem; }
.team li { display: flex; align-items: center; gap: .7rem; }
.team-ini { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--saw); box-shadow: inset 0 0 0 1px rgba(192, 138, 78, .5); font-family: var(--serif); font-style: italic; color: var(--oak-3); }
.team strong { display: block; font-weight: 450; line-height: 1.2; }
.team small { font-size: .8rem; color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.facts li { position: relative; padding: 1.5rem 1.2rem 1.3rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts li::before { content: ""; position: absolute; left: -4px; top: -4px; width: 7px; height: 7px; border: 1px solid var(--oak); background: var(--paper); }
.facts b { display: block; margin-bottom: .3rem; font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 400; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.facts li > span { font-size: .9rem; color: var(--muted); }
@media (max-width: 860px) { .intro { grid-template-columns: 1fr; } }

/* Savoir-faire */
.services { padding: clamp(4rem, 9vw, 7rem) clamp(1rem, 4vw, 2.5rem); background: var(--saw); }
.services::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 14px; background: repeating-linear-gradient(90deg, rgba(34, 32, 29, .35) 0 1px, transparent 1px 12px) 0 0 / 100% 6px no-repeat, repeating-linear-gradient(90deg, rgba(34, 32, 29, .45) 0 1px, transparent 1px 60px) 0 0 / 100% 14px no-repeat; }
.section-title { max-width: 760px; margin: 0 auto clamp(2.2rem, 4vw, 3.4rem); text-align: center; }
.section-title h2 { font-size: clamp(2.2rem, 5vw, 4rem); margin-bottom: 1rem; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; max-width: 1200px; margin: 0 auto; background: var(--line); box-shadow: 0 0 0 1px var(--line); }
.service { position: relative; display: flex; flex-direction: column; padding: clamp(1.4rem, 3vw, 2.2rem); background: var(--saw); transition: background .4s var(--ease); }
.service:hover { background: var(--paper); }
.service-num { position: absolute; right: 1.2rem; top: 1.1rem; font-family: var(--mono); font-size: .75rem; color: var(--muted); }
.ico { width: 46px; height: 46px; margin-bottom: 1.2rem; fill: none; stroke: var(--oak-3); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { margin-bottom: .6rem; font-size: 1.35rem; letter-spacing: -.02em; }
.service p { font-size: .97rem; color: #544C43; }
.service-price { margin: auto 0 0 !important; padding-top: .8rem; border-top: 1px dashed var(--line); font-family: var(--mono); font-size: .82rem !important; color: var(--oak-3) !important; }
.js .service .ico path, .js .service .ico rect, .js .service .ico circle { stroke-dasharray: 90; stroke-dashoffset: 90; transition: stroke-dashoffset 1.6s var(--ease) .2s; }
.js .service.is-visible .ico path, .js .service.is-visible .ico rect, .js .service.is-visible .ico circle { stroke-dashoffset: 0; }
@media (max-width: 960px) { .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .service-grid { grid-template-columns: 1fr; } }

/* Méthode : image fixe à repères de coupe */
.story { padding: clamp(4rem, 9vw, 7rem) clamp(1rem, 4vw, 2.5rem); background: var(--char); color: var(--saw); }
.story::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(246, 241, 233, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(246, 241, 233, .04) 1px, transparent 1px); background-size: 48px 48px; }
.story .eyebrow { color: var(--oak-2); }
.story-head, .story-grid { position: relative; max-width: 1240px; margin: 0 auto; }
.story-head { margin-bottom: clamp(2rem, 5vw, 4rem); }
.story-head h2 { font-size: clamp(2.4rem, 5.6vw, 4.8rem); }
.story-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: clamp(2rem, 6vw, 6rem); }
.story-media { position: relative; }
.story-frame { position: sticky; top: 14vh; height: 70vh; }
.story-img { position: absolute; inset: 14px; overflow: hidden; opacity: 0; clip-path: inset(0 0 100% 0); transition: opacity .9s var(--ease), clip-path 1.2s var(--ease); }
.story-img.is-active { opacity: 1; clip-path: inset(0 0 0 0); }
.story-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 2s var(--ease); }
.story-img.is-active img { transform: none; }
.crop { position: absolute; width: 22px; height: 22px; border-color: var(--oak-2); border-style: solid; border-width: 0; }
.crop-tl { left: 0; top: 0; border-left-width: 1px; border-top-width: 1px; }
.crop-tr { right: 0; top: 0; border-right-width: 1px; border-top-width: 1px; }
.crop-bl { left: 0; bottom: 0; border-left-width: 1px; border-bottom-width: 1px; }
.crop-br { right: 0; bottom: 0; border-right-width: 1px; border-bottom-width: 1px; }
.story-count { position: absolute; right: 28px; bottom: 26px; margin: 0; padding: .35rem .7rem; border-radius: 4px; background: rgba(20, 19, 17, .7); font-family: var(--mono); font-size: .8rem; letter-spacing: .1em; }
.story-dots { position: absolute; left: 14px; right: 14px; top: calc(14vh + 70vh + 12px); display: none; }
.story-steps { display: grid; }
.story-step { min-height: 70vh; display: grid; align-content: center; padding: 2rem 0; opacity: .25; transition: opacity .6s var(--ease); }
.story-step.is-active { opacity: 1; }
.story-num { margin-bottom: .4rem !important; font-family: var(--serif); font-style: italic; font-size: clamp(3.5rem, 7vw, 6rem) !important; line-height: 1; color: transparent !important; -webkit-text-stroke: 1px var(--oak-2); }
.story-step h3 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); margin-bottom: 1rem; }
.story-step p { font-size: clamp(1.03rem, 1.5vw, 1.18rem); color: rgba(246, 241, 233, .76); max-width: 42ch; }
.story-inline { display: none; }
@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr; }
  .story-media { display: none; }
  .story-step { min-height: 0; opacity: 1; padding: 1rem 0 2.5rem; }
  .story-inline { display: block; overflow: hidden; margin-bottom: 1.2rem; border-radius: 4px; }
  .story-inline img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
}

/* Réalisations : filtres et mosaïque */
.works { padding: clamp(4rem, 9vw, 7rem) clamp(1rem, 4vw, 2.5rem); background: var(--paper); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 0 auto 2.4rem; }
.chips button { min-height: 44px; padding: .5rem 1.1rem; border: 0; border-radius: 6px; background: var(--saw); box-shadow: inset 0 0 0 1px var(--line); font-size: .92rem; cursor: pointer; transition: background .3s, color .3s, box-shadow .3s; }
.chips button:hover { box-shadow: inset 0 0 0 1px var(--oak); }
.chips button[aria-pressed="true"] { background: var(--char); color: var(--saw); box-shadow: none; }
.works-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 210px; grid-auto-flow: dense; gap: clamp(.7rem, 1.5vw, 1.1rem); max-width: 1240px; margin: 0 auto; }
.works-grid.is-few { grid-template-columns: repeat(auto-fit, minmax(260px, 400px)); justify-content: center; }
.work { grid-row: span 2; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.work.is-tall { grid-row: span 3; }
.work.is-out { opacity: 0; transform: scale(.96); }
.work[hidden] { display: none; }
.work figure { position: relative; height: 100%; overflow: hidden; border-radius: 6px; background: var(--saw); }
.work-img { height: 100%; }
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.work:hover img { transform: scale(1.05); }
.work figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: .1rem; padding: 2.6rem 1.1rem 1rem; background: linear-gradient(180deg, transparent, rgba(20, 19, 17, .82)); color: var(--saw); }
.work figcaption strong { font-size: 1.12rem; font-weight: 450; letter-spacing: -.01em; }
.work figcaption span { font-size: .84rem; color: rgba(246, 241, 233, .8); }
.work figcaption em { position: absolute; right: .8rem; top: -1.4rem; padding: .25rem .55rem; border-radius: 4px; background: var(--saw); color: var(--ink); font-family: var(--mono); font-size: .7rem; font-style: normal; opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s var(--ease); }
.work:hover figcaption em { opacity: 1; transform: none; }
@media (max-width: 1000px) { .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 180px; } }
@media (max-width: 640px) { .works-grid { grid-template-columns: 1fr; grid-auto-rows: auto; } .work, .work.is-tall { grid-row: auto; } .work img { aspect-ratio: 4 / 3.4; height: auto; } .work figcaption em { opacity: 1; transform: none; } }

/* Avant · après */
.compare-head { max-width: 760px; margin: clamp(4rem, 8vw, 6rem) auto 2rem; text-align: center; }
.compare-head h3 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: .9rem; }
.compare-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); max-width: 1240px; margin: 0 auto; }
.compare figcaption { margin-top: .7rem; font-size: .95rem; }
.compare-stage { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 6px; background: var(--saw); --pos: 50%; user-select: none; touch-action: pan-y; }
.compare-after, .compare-before { position: absolute; inset: 0; }
.compare-stage img { width: 100%; height: 100%; object-fit: cover; }
.compare-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-before.is-flip img { transform: scaleX(-1); }
.compare-before img { filter: saturate(.75) brightness(.98); }
.compare-tag { position: absolute; top: .8rem; padding: .25rem .6rem; border-radius: 4px; background: rgba(20, 19, 17, .7); color: var(--saw); font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; pointer-events: none; }
.tag-before { left: .8rem; }
.tag-after { right: .8rem; background: var(--oak); color: var(--char); }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--saw); box-shadow: 0 0 12px rgba(0, 0, 0, .4); pointer-events: none; }
.compare-handle span { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: var(--saw); box-shadow: 0 6px 20px rgba(0, 0, 0, .35); }
.compare-handle span::before, .compare-handle span::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; margin-top: -5px; border: 5px solid transparent; }
.compare-handle span::before { left: 8px; border-right-color: var(--char); }
.compare-handle span::after { right: 8px; border-left-color: var(--char); }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.compare-stage:has(input:focus-visible) { outline: 2px solid var(--oak); outline-offset: 3px; }
.compare-stage:has(input:focus-visible) .compare-handle span { box-shadow: 0 0 0 4px var(--oak), 0 6px 20px rgba(0, 0, 0, .35); }
@media (max-width: 760px) { .compare-grid { grid-template-columns: 1fr; } }

/* Devis guidé : fond de plan, carte de travail */
.quote { padding: clamp(4rem, 9vw, 7rem) clamp(1rem, 4vw, 2.5rem); background: var(--forest); color: var(--saw); }
.quote::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(246, 241, 233, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(246, 241, 233, .06) 1px, transparent 1px), linear-gradient(rgba(246, 241, 233, .03) 1px, transparent 1px), linear-gradient(90deg, rgba(246, 241, 233, .03) 1px, transparent 1px); background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px; }
.quote .eyebrow { color: var(--oak-2); }
.quote-inner { position: relative; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; max-width: 1240px; margin: 0 auto; }
.quote-side { position: sticky; top: 6.5rem; }
.quote-side h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); margin-bottom: 1.2rem; }
.quote-side h2 em { color: var(--oak-2); }
.quote-side > p { color: rgba(246, 241, 233, .78); max-width: 42ch; }
.ticket { position: relative; margin-top: 2rem; padding: 1.1rem 1.2rem 1rem; border-radius: 4px; background: var(--saw); color: var(--ink); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); transform: rotate(-1.2deg); }
.ticket::before, .ticket::after { content: ""; position: absolute; left: 0; right: 0; height: 8px; background: radial-gradient(circle at 6px 0, transparent 5px, var(--saw) 5.5px) 0 0 / 12px 8px repeat-x; }
.ticket::before { top: -7px; transform: rotate(180deg); }
.ticket::after { bottom: -7px; }
.ticket-head { display: flex; justify-content: space-between; margin: 0 0 .6rem; padding-bottom: .5rem; border-bottom: 1px dashed var(--line); font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--oak-3); }
.ticket dl { display: grid; gap: .3rem; margin: 0; font-size: .88rem; }
.ticket dl div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: .6rem; }
.ticket dt { color: var(--muted); }
.ticket dd { margin: 0; font-weight: 400; overflow-wrap: anywhere; }
.ticket dd.is-new { animation: ink .9s var(--ease); }
@keyframes ink { from { background: rgba(192, 138, 78, .35); } to { background: transparent; } }
.ticket-foot { margin: .8rem 0 0; padding-top: .5rem; border-top: 1px dashed var(--line); font-family: var(--serif); font-style: italic; font-size: .92rem; color: var(--oak-3); }
@media (max-width: 960px) { .quote-inner { grid-template-columns: 1fr; } .quote-side { position: static; } .ticket { display: none; } }

.wizard { position: relative; padding: clamp(1.2rem, 3.5vw, 2.4rem); border-radius: 10px; background: var(--paper); color: var(--ink); box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .65); }
.progress { margin-bottom: 1.6rem; }
.progress-label { display: flex; justify-content: space-between; gap: 1rem; margin: 0 0 .7rem; font-family: var(--mono); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--oak-3); }
.progress-bar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.progress-bar li { position: relative; height: 6px; border-radius: 2px; background: var(--saw); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.progress-bar li::after { content: ""; position: absolute; inset: 0; background: var(--oak); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.progress-bar li.is-done::after { transform: none; }
.progress-bar li.is-current::after { transform: scaleX(.5); }
.progress-bar span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.progress.is-hidden { display: none; }
.step { margin: 0; padding: 0; border: 0; min-width: 0; }
.step[hidden] { display: none; }
.step.is-current { animation: step-in .55s var(--ease); }
.step.is-back { animation-name: step-back; }
@keyframes step-in { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
@keyframes step-back { from { opacity: 0; transform: translateX(-26px); } to { opacity: 1; transform: none; } }
.step legend { padding: 0; margin-bottom: 1.1rem; }
.step h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -.03em; }
.step h3:focus { outline: none; }
.step-hint { margin-top: -.5rem; }
.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: .6rem; }
.type-card, .swatch, .pills label { position: relative; display: block; cursor: pointer; }
.type-card input, .swatch input, .pills input, .check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.type-card > span { display: grid; gap: .15rem; height: 100%; padding: 1rem 1rem .9rem; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .25s, background .25s, transform .3s var(--ease); }
.type-card .ico { width: 34px; height: 34px; margin-bottom: .5rem; }
.type-card strong { font-weight: 450; line-height: 1.25; }
.type-card small { font-size: .8rem; color: var(--muted); line-height: 1.35; }
.type-card:hover > span, .swatch:hover > span { box-shadow: inset 0 0 0 1px var(--oak); }
.type-card input:checked + span, .swatch input:checked + span { background: #FFFBF4; box-shadow: inset 0 0 0 2px var(--oak); transform: translateY(-2px); }
.type-card input:checked + span::after, .swatch input:checked + span::after { content: ""; position: absolute; right: .7rem; top: .7rem; width: 18px; height: 18px; border-radius: 50%; background: var(--oak) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%2322201D' stroke-width='2.4'/%3E%3C/svg%3E") center / 14px no-repeat; }
.type-card input:focus-visible + span, .swatch input:focus-visible + span, .pills input:focus-visible + span, .check input:focus-visible + span { outline: 2px solid var(--oak); outline-offset: 2px; }

.dims { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 1.4rem; align-items: start; }
.dims-fields { display: grid; gap: .9rem; }
.dims-fields > label[hidden] { display: none !important; }
.field, .dims-fields > label:not(.check) { display: grid; gap: .4rem; font-size: .86rem; letter-spacing: .01em; }
.unit-input { position: relative; display: block; }
.unit-input i { position: absolute; right: .9rem; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: .8rem; font-style: normal; color: var(--muted); pointer-events: none; }
.wizard input:not([type="radio"]):not([type="checkbox"]):not([type="file"]), .wizard textarea, .callback input:not([type="radio"]) { width: 100%; min-height: 50px; padding: .7rem 1rem; border: 0; border-radius: 8px; background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); font-size: 1rem; transition: box-shadow .25s; }
.unit-input input { padding-right: 3rem !important; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.wizard textarea { min-height: 0; resize: vertical; line-height: 1.5; }
.wizard input:focus, .wizard textarea:focus, .callback input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--oak) !important; }
.wizard input:disabled { opacity: .45; }
.wizard [aria-invalid="true"] { box-shadow: inset 0 0 0 2px #B5563E !important; }
.check { position: relative; display: flex; align-items: flex-start; gap: .6rem; font-size: .9rem; cursor: pointer; }
.check span { display: flex; gap: .6rem; }
.check span::before { content: ""; width: 20px; height: 20px; flex: none; margin-top: .1rem; border-radius: 4px; background: #fff; box-shadow: inset 0 0 0 1px rgba(34, 32, 29, .35); }
.check input:checked + span::before { background: var(--oak) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%2322201D' stroke-width='2.4'/%3E%3C/svg%3E") center / 16px no-repeat; box-shadow: none; }
.sketch { margin: 0; padding: .8rem; border-radius: 8px; background: #FFFDF9 linear-gradient(rgba(47, 74, 58, .07) 1px, transparent 1px) 0 0 / 14px 14px, linear-gradient(90deg, rgba(47, 74, 58, .07) 1px, transparent 1px) 0 0 / 14px 14px; box-shadow: inset 0 0 0 1px var(--line); }
.sketch svg { display: block; width: 100%; height: auto; overflow: visible; }
.sketch figcaption { margin-top: .3rem; text-align: center; font-size: .78rem; }
.sk-body { fill: rgba(192, 138, 78, .16); stroke: var(--char); stroke-width: 1.4; stroke-linejoin: round; }
.sk-side { fill: rgba(192, 138, 78, .3); stroke: var(--char); stroke-width: 1.2; stroke-linejoin: round; }
.sk-line { fill: none; stroke: var(--char); stroke-width: .9; opacity: .7; }
.sk-dim { fill: none; stroke: var(--forest); stroke-width: .9; }
.sk-arrow { fill: var(--forest); }
.sk-txt { fill: var(--forest); font-family: var(--mono); font-size: 11px; }
.sk-note { fill: var(--muted); font-family: var(--serif); font-style: italic; font-size: 13px; }
.sketch.is-drawing .sk-body, .sketch.is-drawing .sk-side, .sketch.is-drawing .sk-line { stroke-dasharray: 1400; animation: draw 1.4s var(--ease) both; }
@keyframes draw { from { stroke-dashoffset: 1400; } to { stroke-dashoffset: 0; } }
.sketch.is-off svg { opacity: .35; }
@media (max-width: 700px) { .dims { grid-template-columns: 1fr; } .sketch { order: -1; } }

.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .6rem; margin-bottom: 1.4rem; }
.swatch > span { display: grid; gap: .1rem; height: 100%; padding: .55rem .55rem .8rem; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .25s, transform .3s var(--ease); }
.swatch strong { margin-top: .45rem; padding: 0 .25rem; font-weight: 450; }
.swatch small { padding: 0 .25rem; font-size: .78rem; color: var(--muted); line-height: 1.3; }
.wood { display: grid; place-items: center; height: 70px; border-radius: 5px; background-image: var(--grain); background-size: 260px 130px; background-blend-mode: multiply; font-family: var(--serif); font-size: 1.8rem; font-style: normal; color: var(--oak-3); }
.wood-chene { background-color: #C9A06A; }
.wood-noyer { background-color: #6E4A31; }
.wood-frene { background-color: #E2CDA6; }
.wood-meleze { background-color: #B9784A; }
.wood-epicea { background-color: #EAD7B3; background-size: 200px 100px; }
.wood-laque { background-color: #3D5E4B; background-image: linear-gradient(135deg, rgba(255, 255, 255, .18), transparent 55%); }
.wood-conseil { background-color: var(--saw); background-image: repeating-linear-gradient(135deg, transparent 0 8px, rgba(192, 138, 78, .18) 8px 9px); }
.field-title { margin: 1.3rem 0 .55rem; font-size: .86rem; }
.pills { display: flex; flex-wrap: wrap; gap: .45rem; }
.pills span { display: block; padding: .55rem .95rem; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: .9rem; transition: background .25s, color .25s, box-shadow .25s; }
.pills label:hover span { box-shadow: inset 0 0 0 1px var(--oak); }
.pills input:checked + span { background: var(--char); color: var(--saw); box-shadow: none; }

.drop { position: relative; display: grid; justify-items: center; gap: .25rem; padding: 1.6rem 1rem; border-radius: 8px; background: #FFFDF9; border: 1.5px dashed rgba(138, 92, 43, .45); text-align: center; cursor: pointer; transition: background .25s, border-color .25s; }
.drop svg { width: 34px; height: 34px; margin-bottom: .3rem; fill: none; stroke: var(--oak-3); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.drop strong { font-weight: 450; }
.drop .hint { font-size: .82rem; }
.drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop.is-over, .drop:hover { background: #FFF6E9; border-color: var(--oak); }
.drop:has(input:focus-visible) { outline: 2px solid var(--oak); outline-offset: 3px; }
.thumbs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.thumbs:empty { display: none; }
.thumbs li { position: relative; width: 84px; height: 84px; overflow: hidden; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line); animation: pop .45s var(--ease); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button { position: absolute; right: 4px; top: 4px; display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: rgba(20, 19, 17, .75); color: #fff; font-size: 1rem; line-height: 1; cursor: pointer; }
.thumbs.is-small li { width: 64px; height: 64px; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; margin-bottom: .9rem; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.zip-note { margin: -.3rem 0 .9rem; padding: .5rem .8rem; border-radius: 6px; font-size: .86rem; background: rgba(47, 74, 58, .1); color: var(--forest); }
.zip-note.is-far { background: rgba(192, 138, 78, .14); color: var(--oak-3); }
.zip-note[hidden] { display: none; }
.error { margin: 1rem 0 0; padding: .55rem .85rem; border-radius: 6px; background: rgba(181, 86, 62, .1); color: #9A3F2A; font-size: .88rem; }
.error[hidden] { display: none; }

.recap h3 { margin-bottom: 1.1rem; }
.recap-list { display: grid; margin: 0 0 1rem; border-top: 1px solid var(--line); }
.recap-list div { display: grid; grid-template-columns: 9rem minmax(0, 1fr) auto; gap: .8rem; align-items: baseline; padding: .7rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.recap-list dt { color: var(--muted); font-size: .86rem; }
.recap-list dd { margin: 0; overflow-wrap: anywhere; }
.recap-list button { padding: .2rem .4rem; border: 0; background: none; color: var(--oak-3); font-size: .84rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@media (max-width: 560px) { .recap-list div { grid-template-columns: minmax(0, 1fr) auto; } .recap-list dd { grid-column: 1 / -1; grid-row: 2; } }

.done { text-align: center; }
.done h3 { margin-bottom: .8rem; }
.done > p { max-width: 54ch; margin-inline: auto; color: #4E473F; }
.done-check { display: inline-grid; place-items: center; width: 60px; height: 60px; margin-bottom: 1rem; border-radius: 50%; background: var(--oak); animation: pop .6s var(--ease); }
.done-check svg { width: 30px; height: 30px; fill: none; stroke: var(--char); stroke-width: 2.4; stroke-dasharray: 30; animation: draw-check .8s var(--ease) .2s both; }
@keyframes draw-check { from { stroke-dashoffset: 30; } to { stroke-dashoffset: 0; } }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
.mail { max-width: 560px; margin: 1.4rem auto; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px var(--line), 0 20px 40px -30px rgba(0, 0, 0, .4); text-align: left; overflow: hidden; }
.mail-head { display: grid; gap: .1rem; margin: 0; padding: .7rem 1rem; background: var(--saw); border-bottom: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.mail-head span:last-child { color: var(--ink); font-weight: 450; }
.mail-body { margin: 0; padding: .9rem 1rem 1rem; font-family: var(--mono); font-size: .78rem; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; color: #3B3631; max-height: 300px; overflow-y: auto; }
.done .btn { margin-top: .4rem; }

.wizard-nav { display: flex; justify-content: flex-end; gap: .6rem; margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.wizard-nav [data-prev] { margin-right: auto; }
.wizard-nav.is-hidden { display: none; }

/* Être rappelé */
.callback { position: relative; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(1rem, 4vw, 3rem); align-items: center; max-width: 1240px; margin: clamp(2.5rem, 5vw, 4rem) auto 0; padding: clamp(1.2rem, 3vw, 1.8rem); border-radius: 10px; background: rgba(246, 241, 233, .07); box-shadow: inset 0 0 0 1px var(--line-light); }
.callback .eyebrow { margin-bottom: .4rem; }
.callback h3 { font-size: 1.6rem; margin-bottom: .3rem; }
.callback .hint { margin: 0; color: rgba(246, 241, 233, .7); }
.callback-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; align-items: end; }
.callback-fields .pills { grid-column: 1 / 2; }
.callback-fields .pills span { background: rgba(246, 241, 233, .1); color: var(--saw); box-shadow: inset 0 0 0 1px var(--line-light); }
.callback-fields .pills input:checked + span { background: var(--saw); color: var(--char); }
.callback-fields .btn { justify-self: stretch; background: var(--saw); color: var(--forest); }
.callback .field { color: rgba(246, 241, 233, .85); }
.callback-done { grid-column: 2; display: flex; align-items: center; gap: 1rem; }
.callback-done p { margin: 0; color: rgba(246, 241, 233, .85); }
.callback-done strong { color: var(--saw); font-weight: 450; }
.callback-done .done-check { flex: none; width: 46px; height: 46px; margin: 0; }
.callback-done .done-check svg { width: 22px; height: 22px; }
.callback-done[hidden] { display: none; }
.callback.is-sent .callback-fields { display: none; }
@media (max-width: 860px) { .callback { grid-template-columns: 1fr; } .callback-done { grid-column: auto; } }
@media (max-width: 460px) { .callback-fields { grid-template-columns: 1fr; } .callback-fields .pills { grid-column: auto; } }

/* Zone d'intervention */
.zone { padding: clamp(4rem, 9vw, 7rem) clamp(1rem, 4vw, 2.5rem); background: var(--saw); }
.zone-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(1rem, 3vw, 2rem); max-width: 1240px; margin: 0 auto; }
.map-card { padding: clamp(.8rem, 2vw, 1.2rem); border-radius: 10px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.map { display: block; width: 100%; height: auto; border-radius: 6px; }
.map-card figcaption { margin-top: .6rem; font-size: .8rem; }
.map-land { fill: #EEE5D6; }
.map-hill { fill: none; stroke: rgba(34, 32, 29, .14); stroke-width: 1; stroke-dasharray: 3 5; }
.map-vine { stroke: rgba(47, 74, 58, .35); stroke-width: 1.4; }
.map-vines { fill: url(#vignes); }
.map-lake { fill: #B8CCC6; }
.map-river { fill: none; stroke: #B8CCC6; stroke-width: 6; stroke-linecap: round; }
.map-road { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; }
.map-zone { fill: rgba(192, 138, 78, .08); stroke: var(--oak); stroke-width: 1.2; stroke-dasharray: 6 6; }
.map-route { fill: none; stroke: var(--oak-3); stroke-width: 1.6; stroke-dasharray: 3 5; opacity: 0; transition: opacity .35s; }
.map-route.is-on { opacity: 1; animation: march 1.2s linear infinite; }
@keyframes march { to { stroke-dashoffset: -16; } }
.map-place circle { fill: var(--forest); stroke: #EEE5D6; stroke-width: 2; transition: transform .3s var(--ease); transform-box: fill-box; transform-origin: center; }
.map-place text { fill: var(--char); font-family: var(--sans); font-size: 14px; font-weight: 450; paint-order: stroke; stroke: #EEE5D6; stroke-width: 4px; stroke-linejoin: round; }
.map-place.is-on circle { fill: var(--oak); transform: scale(1.6); }
.map-place.is-on text { fill: var(--oak-3); }
.map-lake-label { fill: #5B7C74; font-family: var(--serif); font-style: italic; font-size: 22px; letter-spacing: .04em; }
.map-pin path { fill: var(--char); }
.map-pin > circle:last-child { fill: var(--oak); }
.map-pulse { fill: rgba(192, 138, 78, .35); animation: map-pulse 2.4s var(--ease) infinite; transform-box: fill-box; transform-origin: center; }
@keyframes map-pulse { from { transform: scale(.4); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
.map-atelier { fill: var(--char); font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; paint-order: stroke; stroke: #EEE5D6; stroke-width: 4px; }
.zone-side { display: grid; gap: clamp(1rem, 2vw, 1.4rem); align-content: start; }
.places { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; }
.places button { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; width: 100%; min-height: 44px; padding: .55rem .8rem; border: 0; border-radius: 6px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-size: .92rem; text-align: left; cursor: pointer; transition: box-shadow .25s, background .25s; }
.places button .hint { font-family: var(--mono); font-size: .76rem; white-space: nowrap; }
.places button:hover, .places button.is-on { background: #fff; box-shadow: inset 0 0 0 1px var(--oak); }
.contact-card { padding: clamp(1.2rem, 3vw, 1.6rem); border-radius: 10px; background: var(--char); color: var(--saw); }
.contact-card h3 { margin-bottom: .8rem; font-size: 1.3rem; }
.contact-card .hint { color: rgba(246, 241, 233, .6); }
.contact-card a { text-decoration: none; }
.contact-card a:hover { color: var(--oak-2); }
.big-link { font-size: 1.45rem; font-weight: 400; letter-spacing: -.02em; }
.hours { width: 100%; border-collapse: collapse; margin: .4rem 0 1rem; font-size: .92rem; }
.hours th, .hours td { padding: .42rem 0; vertical-align: top; border-bottom: 1px solid var(--line-light); text-align: left; font-weight: 300; }
.hours td { text-align: right; color: rgba(246, 241, 233, .7); white-space: nowrap; line-height: 1.5; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--oak-2); font-weight: 450; }
.hours tr.is-today th::after { content: " ●"; font-size: .65rem; }
@media (max-width: 900px) { .zone-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .map-place text { font-size: 19px; } .map-atelier { font-size: 15px; } .map-lake-label { font-size: 26px; } }
@media (max-width: 340px) { .places { grid-template-columns: 1fr; } }

/* Fin de page */
.outro { position: relative; display: grid; place-items: center; min-height: 82vh; padding: 5rem clamp(1rem, 4vw, 3rem); text-align: center; color: var(--saw); overflow: hidden; isolation: isolate; background: var(--char); }
.outro-bg { position: absolute; inset: -12% 0; z-index: -2; transform: translateY(var(--d, 0)); }
.outro-bg img { width: 100%; height: 100%; object-fit: cover; }
.outro::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 60% at 50% 50%, rgba(20, 19, 17, .45), rgba(20, 19, 17, .88)); }
.outro .eyebrow { color: var(--oak-2); }
.outro-text { max-width: 980px; }
.outro-title { margin: 0 0 2rem; font-size: clamp(2.5rem, 6.6vw, 5.8rem); font-weight: 500; letter-spacing: -.05em; line-height: .98; }
.outro-title em { color: var(--oak-2); }
.outro-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; }

/* Pied de page */
.foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding: 2.2rem clamp(1rem, 4vw, 2.5rem) 2.6rem; background: var(--char); color: rgba(246, 241, 233, .72); font-size: .88rem; border-top: 1px solid var(--line-light); }
.foot .brand { color: var(--saw); }
.foot-links { display: flex; flex-wrap: wrap; gap: 1.4rem; margin: 0; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--oak-2); }

/* Barre du bas (téléphone) */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: 76px; }
  .mobile-bar { position: fixed; z-index: 55; left: 12px; right: 12px; bottom: 12px; display: grid; grid-template-columns: 1fr 1.7fr; gap: 6px; padding: 6px; border-radius: 12px; background: rgba(34, 32, 29, .97); box-shadow: 0 20px 40px -15px rgba(0, 0, 0, .5); }
  .mobile-bar a { display: grid; place-items: center; min-height: 48px; border-radius: 8px; color: var(--saw); font-size: .95rem; font-weight: 450; text-decoration: none; box-shadow: inset 0 0 0 1px var(--line-light); }
  .mobile-bar .is-main { background: var(--oak); color: var(--char); box-shadow: none; }
}

/* Apparitions au défilement */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.hero-content [data-reveal]:nth-child(3) { transition-delay: .3s; }
.hero-content [data-reveal]:nth-child(4) { transition-delay: .45s; }
.hero-content [data-reveal]:nth-child(5) { transition-delay: .6s; }
.hero-sheet[data-reveal] { transition-delay: .8s; }
.facts li:nth-child(2) { transition-delay: .1s; }
.facts li:nth-child(3) { transition-delay: .2s; }
.facts li:nth-child(4) { transition-delay: .3s; }
.service:nth-child(3n+2) { transition-delay: .1s; }
.service:nth-child(3n) { transition-delay: .2s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .hero-dim .dim-line, .js .service .ico path, .js .service .ico rect, .js .service .ico circle { stroke-dashoffset: 0; }
  .marquee-track { width: auto; flex-wrap: wrap; justify-content: center; padding: 0 1rem; }
  .marquee-track > :nth-child(n+21) { display: none; }
}

/* Safari : cadres arrondis qui rognent une image en mouvement, isolés pour ne pas scintiller ;
   titres mot à mot : une fois apparus, les mots ne sont plus rognés un à un */
.room-photo, .story-frame, .story-img, .reel figure, .arch, .groups-photo, .work figure, .compare-stage, .daily-photo, .drawer-photo, .story-inline { isolation: isolate; transform: translateZ(0); }
[data-split].is-done .w { overflow: visible; }
