/* BATI GS — site vitrine
   Mise en page : deux scènes plein écran pilotées par le défilement (blason, puis la maison),
   puis services et contact sur fond sombre. Couleurs du logo : bordeaux, ambre, noir. */
:root {
  --night: #0f0d0c; --night-2: #1a1614; --paper: #f4efe9; --muted: #b9aea4; --line: rgba(244, 239, 233, .14);
  --bordeaux: #8b2335; --ambre: #e9a24c; --ambre-2: #f3c27e;
  --f-display: 'Archivo', 'Arial Narrow', Arial, sans-serif;
  --f-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box }
html { scroll-behavior: smooth }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto } }
body { margin: 0; background: var(--night); color: var(--paper); font: 16px/1.55 var(--f-body); -webkit-font-smoothing: antialiased }
a { color: inherit }
:focus-visible { outline: 2px solid var(--ambre); outline-offset: 3px }
h1, h2, h3 { font-family: var(--f-display); margin: 0; line-height: 1; text-wrap: balance }

/* En-tête */
.top { position: fixed; z-index: 20; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: calc(14px + env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) 14px max(20px, env(safe-area-inset-left, 0px));
  background: linear-gradient(rgba(15, 13, 12, .72), rgba(15, 13, 12, 0)); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none }
.badge { width: 44px; height: 52px; border-radius: 8px; background: #fff; display: grid; place-items: center; padding: 4px }
.badge img { width: 100%; height: 100%; object-fit: contain }
.brand .name { font: 800 20px var(--f-display); font-stretch: 120%; letter-spacing: .04em }
.top nav { display: flex; align-items: center; gap: 22px; font-weight: 600; font-size: 15px }
.top nav a { text-decoration: none }
.top nav a:not(.cta):hover { color: var(--ambre) }
@media (max-width: 640px) { .top nav a:not(.cta) { display: none } .brand .name { font-size: 17px } }
.cta { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--ambre); color: #1b130c; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; font-family: var(--f-body); font-size: 15px }
.cta:hover { background: var(--ambre-2) }
.cta.big { min-height: 54px; padding: 0 26px; font-size: 16.5px }
.ghost { display: inline-flex; align-items: center; min-height: 54px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-weight: 600 }

/* Scènes pilotées par le défilement */
.scrolly { position: relative; height: var(--len) }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100% }
.eyebrow { font: 700 12.5px var(--f-body); letter-spacing: .18em; text-transform: uppercase; color: var(--ambre); margin: 0 0 14px }

.intro-text { position: absolute; left: 0; right: 0; bottom: calc(5vh + env(safe-area-inset-bottom, 0px)); padding-top: 60px; background: linear-gradient(transparent, rgba(15,13,12,.85) 55%); text-align: center; padding: 0 20px; opacity: 0; transition: opacity .4s }
.intro-text.on { opacity: 1 }
.intro-text h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0) }
.trades { font: 700 clamp(14px, 2vw, 20px) var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 16px 0 0 }
.trades i { font-style: normal; color: var(--bordeaux) }
.hint { position: absolute; left: 50%; bottom: 3vh; transform: translateX(-50%); margin: 0; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); transition: opacity .3s }
.hint::after { content: ''; display: block; width: 1px; height: 34px; margin: 10px auto 0; background: linear-gradient(var(--ambre), transparent) }

.shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15, 13, 12, .72) 0%, rgba(15, 13, 12, .25) 45%, rgba(15, 13, 12, 0) 70%); pointer-events: none }
.chapters { position: absolute; inset: 0; pointer-events: none }
.chapter { position: absolute; left: max(24px, 6vw); top: 50%; width: min(520px, calc(100% - 48px)); transform: translateY(-40%); opacity: 0; transition: opacity .45s, transform .45s; }
.chapter.on { opacity: 1; transform: translateY(-50%); pointer-events: auto }
.chapter h2 { font-size: clamp(38px, 6vw, 84px); font-weight: 800; font-stretch: 112%; margin-bottom: 18px }
.chapter p { font-size: clamp(16px, 1.5vw, 19px); color: #e8e0d8; margin: 0; max-width: 46ch }
.chapter ul { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px }
.chapter li { border: 1px solid rgba(233, 162, 76, .5); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600; background: rgba(15, 13, 12, .35) }
.chapter .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px }
@media (max-width: 760px) {
  .shade { background: linear-gradient(0deg, rgba(15, 13, 12, .88) 0%, rgba(15, 13, 12, .45) 42%, rgba(15, 13, 12, 0) 65%) }
  .chapter { top: auto; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); transform: translateY(16px) }
  .chapter.on { transform: none }
}

.star { position: absolute; width: clamp(70px, 9vw, 130px); height: auto; left: 0; top: 0; pointer-events: none; opacity: 0; will-change: transform; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .5)) }
.rail { position: absolute; right: max(20px, 3vw); top: 50%; transform: translateY(-50%); list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px }
.rail li { display: flex; align-items: center; gap: 12px; flex-direction: row-reverse; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); transition: color .3s }
.rail .slot { width: 26px; height: 26px; flex-shrink: 0; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); background: rgba(244, 239, 233, .18); transition: background .3s, transform .3s }
.rail li.done .slot { background: #1d1a18; box-shadow: inset 0 0 0 1px var(--ambre) }
.rail li.done { color: var(--paper) }
.rail li.active .slot { background: var(--ambre); transform: scale(1.15) }
.rail li.active { color: var(--ambre) }
@media (max-width: 760px) {
  .rail { top: auto; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); right: 50%; transform: translateX(50%); flex-direction: row; gap: 14px }
  .rail li { font-size: 0; gap: 0 } .rail .slot { width: 24px; height: 24px }
}
.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(244, 239, 233, .08) }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--bordeaux), var(--ambre)) }

/* Sections classiques */
.section { padding-block: clamp(72px, 10vw, 140px); padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)) }
.wrap { max-width: 1180px; margin: 0 auto }
.title { font-size: clamp(34px, 5vw, 64px); font-weight: 800; font-stretch: 110%; margin-bottom: 40px; max-width: 18ch }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px }
.card { background: var(--night-2); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block }
.card div { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1 }
.card h3 { font-size: 24px; font-weight: 800; font-stretch: 112% }
.card p { margin: 0; color: var(--muted); font-size: 15px; flex: 1 }
.card a { color: var(--ambre); font-weight: 700; text-decoration: none; margin-top: 6px }
.card a::after { content: ' →' }

.contact { background: linear-gradient(180deg, var(--night) 0%, #170f10 100%); border-top: 1px solid var(--line) }
.contact .grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: start }
@media (max-width: 860px) { .contact .grid { grid-template-columns: minmax(0, 1fr) } }
.lead { color: var(--muted); font-size: 17px; max-width: 46ch; margin: -20px 0 28px }
.coords { margin: 0; display: grid; gap: 16px }
.coords div { border-top: 1px solid var(--line); padding-top: 12px }
.coords dt { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted) }
.coords dd { margin: 4px 0 0; font-size: 19px; font-weight: 600 }
form { background: var(--night-2); border: 1px solid var(--line); border-radius: 20px; padding: clamp(18px, 3vw, 32px); display: flex; flex-direction: column; gap: 16px }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px }
@media (max-width: 520px) { .row2 { grid-template-columns: minmax(0, 1fr) } }
form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted) }
input, textarea { font: 16px var(--f-body); color: var(--paper); background: var(--night); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; min-height: 48px }
textarea { resize: vertical }
input:focus, textarea:focus { border-color: var(--ambre); outline: none }
fieldset { border: 0; margin: 0; padding: 0 }
legend { font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 8px }
.checks { display: flex; flex-wrap: wrap; gap: 8px }
.checks label { flex-direction: row; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; color: var(--paper); cursor: pointer }
.checks input { min-height: 0; width: 18px; height: 18px; accent-color: var(--ambre) }
.checks label:has(input:checked) { border-color: var(--ambre); background: rgba(233, 162, 76, .12) }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden }
.status { margin: 0; font-weight: 600; min-height: 1.5em }
.status.ok { color: #7fd39a } .status.err { color: #f08a7a }
.foot { border-top: 1px solid var(--line); padding: 24px max(20px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px)); color: var(--muted); font-size: 14px }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 20px }
.foot a { text-decoration: none } .foot a:hover { color: var(--ambre) }
[data-todo] { color: var(--ambre) }
