/* Artisan Bony — site 3D immersif (20/10/2026). Une scène fixe plein écran, les chapitres défilent par-dessus. */
:root {
  --bg: #0a1719; --ink: #f3eee4; --ink-2: rgba(243,238,228,.68); --ink-3: rgba(243,238,228,.42);
  --gold: #c9a66b; --gold-2: #e9d6b0; --line: rgba(243,238,228,.14);
  --gutter: clamp(20px, 4.2vw, 64px); --nav-h: 86px;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.is-dragging, html.film-on { scroll-behavior: auto; }
@media (hover: none) and (pointer: coarse) { html { scroll-snap-type: y proximity; } .ch { scroll-snap-align: start; } }
html.film-on { scroll-snap-type: none; }
body { margin: 0; overflow-x: hidden; font-weight: 300; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
::selection { background: rgba(201,166,107,.35); }

/* ---------- fond photo ---------- */
.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: #0a1719 url(../images/bg-desk-lqip.jpg) center / cover no-repeat; }
.bg img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.08) translateY(var(--bgy, 0px)); will-change: transform; filter: saturate(.8); }
.bg-veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,22,25,.8) 0%, rgba(9,22,25,.52) 42%, rgba(9,22,25,.88) 100%); }
.bg-veil::after { content: ""; position: absolute; inset: 0; background: radial-gradient(115% 85% at 55% 42%, rgba(5,14,16,0) 35%, rgba(5,14,16,.7) 100%); }
@media (max-width: 820px) { .bg { background-image: url(../images/bg-mob-lqip.jpg); } }

#scene { position: fixed; inset: 0; z-index: 1; width: 100%; height: 100%; display: block; pointer-events: none; }
.no-3d #scene { display: none; }

/* ---------- rails de défilement ---------- */
.scroll { position: relative; z-index: 0; }
.ch { height: calc(var(--len) * 100vh); height: calc(var(--len) * 100svh); }

/* ---------- chargement ---------- */
#loader { position: fixed; inset: 0; z-index: 20; background: var(--bg); display: grid; place-content: center; justify-items: center; gap: 14px; transition: opacity .45s ease, visibility 0s .45s; }
#loader.is-hidden { opacity: 0; visibility: hidden; }
#loader .mark { width: 44px; height: 44px; color: var(--gold); }
#loader b { font-weight: 500; font-size: 12px; letter-spacing: .34em; color: var(--ink-2); }
#loader i { width: 120px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
#loader i::after { content: ""; position: absolute; left: -40%; top: 0; bottom: 0; width: 40%; background: var(--gold); animation: load 1.3s ease-in-out infinite; }
@keyframes load { to { left: 100%; } }

/* ---------- navigation ---------- */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 6; display: flex; align-items: center; gap: 30px; padding: 20px var(--gutter); pointer-events: none; }
.top > * { pointer-events: auto; }
.top::after { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0; height: 1px; background: linear-gradient(90deg, rgba(243,238,228,.18), rgba(243,238,228,.05)); }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand svg { width: 40px; height: 40px; color: var(--gold); flex: none; }
.brand b { display: block; font-weight: 500; font-size: 15px; letter-spacing: .34em; line-height: 1; }
.brand small { display: block; font-size: 9px; letter-spacing: .24em; color: var(--ink-3); margin-top: 6px; }
.links { display: flex; gap: 26px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.links a { color: var(--ink-2); text-decoration: none; font-size: 13px; letter-spacing: .02em; transition: color .2s; }
.links a:hover, .links a.is-on { color: var(--ink); }
.arr { display: inline-block; font-size: .85em; margin-left: .25em; transform: translateY(-1px); }
.film, .call { display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(243,238,228,.28); background: rgba(9,22,25,.35); color: var(--ink); font: inherit; font-size: 12.5px; letter-spacing: .02em; text-decoration: none; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: border-color .2s, background .2s; }
.film:hover, .call:hover { border-color: rgba(243,238,228,.6); }
.film .ico, .film-cta .ico { font-size: 9px; color: var(--gold); }
.actions .film-cta { display: none; }
.film.is-on .ico { font-size: 11px; }
.call { display: none; }
.burger { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(243,238,228,.28); background: rgba(9,22,25,.35); flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer; padding: 0; }
.burger i { display: block; width: 16px; height: 1px; background: var(--ink); transition: transform .3s; }
body.menu-open .burger i:first-child { transform: translateY(3px) rotate(45deg); }
body.menu-open .burger i:last-child { transform: translateY(-3px) rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 5; background: rgba(9,22,25,.96); display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 90px 28px 40px; opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
body.menu-open .menu { opacity: 1; visibility: visible; transition-delay: 0s; }
.menu > a { font-family: var(--serif); font-size: 38px; line-height: 1.25; text-decoration: none; color: var(--ink); }
.menu-foot { display: grid; gap: 10px; margin-top: 26px; }
@media (max-width: 1080px) { .links { display: none; } .film { margin-left: auto; } }
@media (max-width: 820px) {
  :root { --nav-h: 66px; }
  .top { padding: 12px 18px; gap: 10px; }
  .top::after { left: 18px; right: 18px; }
  .brand { gap: 9px; } .brand svg { width: 30px; height: 30px; } .brand b { font-size: 10.5px; letter-spacing: .26em; } .brand small { display: none; }
  .film { display: inline-flex; margin-left: auto; padding: 8px 12px; font-size: 12px; }
  .call { display: inline-flex; padding: 9px; }
  .call span { display: none; }
  .burger { display: flex; }
  .actions .btn-discover { display: none; } .actions .film-cta { display: inline-flex; }
}

/* ---------- scène : les panneaux ---------- */
.stage { position: fixed; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.panel { position: absolute; inset: 0; display: grid; align-content: center; padding: var(--nav-h) var(--gutter) 96px; opacity: 0; visibility: hidden; will-change: opacity, transform; }
.panel.is-on { visibility: visible; }
.panel-in { width: min(560px, 46vw); pointer-events: auto; }
.eyebrow { display: flex; align-items: center; gap: 14px; margin: 0 0 20px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); font-weight: 400; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); opacity: .7; flex: none; }
.title { margin: 0 0 22px; font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 5.4vw, 84px); line-height: .98; letter-spacing: -.012em; }
.title em { display: block; font-style: italic; color: var(--gold-2); }
.lead { margin: 0 0 26px; max-width: 48ch; font-size: clamp(15px, 1.1vw, 17px); color: var(--ink-2); }
.lead strong { color: var(--ink); font-weight: 400; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; border: 1px solid transparent; font: inherit; font-size: 13.5px; font-weight: 400; letter-spacing: .02em; text-decoration: none; cursor: pointer; transition: transform .25s, background .2s, border-color .2s, color .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: #0b1719; border-color: var(--ink); }
.btn-primary:hover { background: #fff; }
.btn-ghost { border-color: rgba(243,238,228,.32); color: var(--ink); background: rgba(9,22,25,.25); }
.btn-ghost:hover { border-color: rgba(243,238,228,.65); }
.meta { margin: 22px 0 0; font-size: 12px; letter-spacing: .05em; color: var(--ink-3); }
.meta a { color: var(--ink-3); }
.pill { display: inline-block; margin: 20px 0 0; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.line { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); max-width: 44ch; }

/* onglets, curseurs, pastilles */
.tabs { display: flex; gap: 22px; margin: 0 0 18px; border-bottom: 1px solid var(--line); }
.tab { position: relative; padding: 0 0 11px; border: 0; background: none; color: var(--ink-3); font: inherit; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; transition: color .2s; }
.tab span { color: var(--gold); margin-right: 6px; }
.tab.is-on, .tab:hover { color: var(--ink); }
.tab.is-on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--gold); }
.slider { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; margin: 0 0 16px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.slider output { min-width: 4.5ch; text-align: right; color: var(--ink); letter-spacing: .04em; text-transform: none; font-size: 13px; }
.slider input { --v: 0%; -webkit-appearance: none; appearance: none; width: 100%; height: 22px; margin: 0; background: transparent; cursor: pointer; }
.slider input::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, var(--gold) var(--v), var(--line) var(--v)); border-radius: 2px; }
.slider input::-moz-range-track { height: 2px; background: linear-gradient(90deg, var(--gold) var(--v), var(--line) var(--v)); border-radius: 2px; }
.slider input::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -7px; border-radius: 50%; background: var(--ink); border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--gold); }
.slider input::-moz-range-thumb { width: 10px; height: 10px; border-radius: 50%; background: var(--ink); border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--gold); }
.replay { padding: 0; border: 0; background: none; color: var(--ink-2); font: inherit; font-size: 13px; cursor: pointer; border-bottom: 1px solid var(--line); transition: color .2s, border-color .2s; }
.replay:hover { color: var(--ink); border-color: var(--gold); }
.swatches { display: flex; gap: 18px; margin: 0 0 6px; flex-wrap: wrap; }
.sw { display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 0; border: 0; background: none; color: var(--ink-3); font: inherit; font-size: 10.5px; letter-spacing: .06em; cursor: pointer; transition: color .2s; }
.sw i { width: 42px; height: 42px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), inset -6px -8px 14px rgba(0,0,0,.25); transition: transform .25s, box-shadow .25s; }
.sw:hover i { transform: scale(1.06); }
.sw.is-on { color: var(--ink); }
.sw.is-on i { box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--gold), inset -6px -8px 14px rgba(0,0,0,.25); }

/* formulaire */
.tel { display: inline-block; margin: -6px 0 18px; font-family: var(--serif); font-size: clamp(30px, 2.6vw, 40px); font-weight: 500; letter-spacing: .02em; text-decoration: none; color: var(--gold-2); }
.form { display: grid; gap: 10px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form input, .form select, .form textarea { width: 100%; padding: 11px 0; border: 0; border-bottom: 1px solid rgba(243,238,228,.28); background: transparent; color: var(--ink); font: inherit; font-size: 15px; border-radius: 0; outline: none; transition: border-color .2s; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--gold); }
.form ::placeholder { color: var(--ink-3); }
.form select { -webkit-appearance: none; appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23c9a66b' stroke-width='1.5'/%3E%3C/svg%3E") right center / 12px no-repeat; padding-right: 20px; }
.form select option { color: #111; }
.form textarea { resize: vertical; min-height: 44px; }
.form .actions { margin-top: 6px; }
.form .hp { position: absolute; left: -9999px; }
.form-note { font-size: 13px; color: var(--ink-2); }
.foot { font-size: 11.5px; line-height: 1.6; }

/* ---------- HUD, légende, pause, rail ---------- */
.hud { position: fixed; left: var(--gutter); bottom: 26px; z-index: 4; display: flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: .14em; color: var(--ink-2); pointer-events: none; }
.hud-n { color: var(--ink); } .hud-sep, .hud-t { color: var(--ink-3); }
.hud-name { margin-left: 8px; letter-spacing: .04em; }
.hud-bar { position: relative; width: 150px; height: 1px; margin-left: 10px; background: var(--line); }
.hud-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--gold); }
.caption { position: fixed; right: var(--gutter); bottom: 72px; z-index: 4; display: flex; align-items: center; gap: 12px; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); pointer-events: none; transition: opacity .3s; }
.caption i { width: 36px; height: 1px; background: var(--gold); opacity: .8; }
.pause { position: fixed; right: var(--gutter); bottom: 22px; z-index: 5; display: inline-flex; align-items: center; gap: 10px; padding: 8px 0; border: 0; background: none; color: var(--ink-2); font: inherit; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; cursor: pointer; transition: color .2s; }
.pause:hover { color: var(--ink); }
.pause .ico { font-size: 8px; color: var(--gold); }
.rail { position: fixed; right: 16px; top: 50%; transform: translateY(-50%); z-index: 4; display: flex; flex-direction: column; gap: 14px; }
.rail button { width: 5px; height: 5px; padding: 0; border: 0; border-radius: 50%; background: rgba(243,238,228,.28); cursor: pointer; transition: background .2s, box-shadow .2s; }
.rail button.is-on { background: var(--gold); box-shadow: 0 0 0 3px rgba(201,166,107,.22); }

/* ---------- mentions ---------- */
.modal { position: fixed; inset: 0; z-index: 30; display: none; place-items: center; padding: 20px; }
.modal:target { display: grid; }
.modal-close { position: absolute; inset: 0; background: rgba(5,14,16,.8); }
.modal-in { position: relative; width: min(560px, 100%); padding: 32px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg); font-size: 14px; color: var(--ink-2); }
.modal-in h3 { margin: 0 0 14px; font-family: var(--serif); font-weight: 400; font-size: 30px; color: var(--ink); }
.modal-in p { margin: 0 0 12px; }

/* ---------- téléphone ---------- */
@media (max-width: 820px) {
  .panel { align-content: end; padding: 0 18px calc(56px + env(safe-area-inset-bottom)); }
  .panel::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 58%; background: linear-gradient(180deg, rgba(9,22,25,0) 0%, rgba(9,22,25,.7) 30%, rgba(9,22,25,.95) 100%); pointer-events: none; }
  .panel-in { position: relative; width: 100%; max-height: calc(100svh - 180px); overflow: auto; -webkit-overflow-scrolling: touch; }
  .eyebrow { margin-bottom: 12px; font-size: 10px; }
  .title { margin-bottom: 12px; font-size: clamp(30px, 9.2vw, 40px); }
  .lead { margin-bottom: 12px; font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .panel[data-ch="0"] .lead { -webkit-line-clamp: 3; }
  .actions .btn { flex: 1 1 auto; padding: 12px 16px; font-size: 13px; }
  .meta { margin-top: 14px; font-size: 11px; }
  .tabs { gap: 14px; } .tab { font-size: 10.5px; letter-spacing: .1em; }
  .slider { gap: 12px; margin-bottom: 12px; }
  .swatches { gap: 12px; } .sw i { width: 36px; height: 36px; } .sw { font-size: 10px; }
  .line { font-size: 12.5px; }
  .tel { margin-bottom: 10px; font-size: 30px; }
  .form { gap: 6px; } .form input, .form select, .form textarea { padding: 9px 0; font-size: 16px; }
  .form .actions { margin-top: 4px; } .form-note { font-size: 12px; }
  .foot, .panel[data-ch="5"] .lead { display: none; }
  .hud { left: 18px; bottom: calc(14px + env(safe-area-inset-bottom)); gap: 8px; font-size: 10px; }
  .hud-bar { width: 60px; margin-left: 6px; } .hud-name { margin-left: 4px; }
  .caption { right: 18px; left: auto; top: calc(var(--nav-h) + 12px); bottom: auto; font-size: 8.5px; letter-spacing: .16em; gap: 8px; }
  .caption i { width: 18px; }
  .pause, .rail { display: none; }
}
@media (max-height: 700px) and (min-width: 821px) {
  .title { font-size: clamp(38px, 4.6vw, 60px); } .lead { margin-bottom: 18px; } .panel { padding-bottom: 80px; }
}

/* ---------- mouvement réduit, sans JS, sans WebGL ---------- */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .sw i, .burger i { transition: none; } }
.no-js .stage { position: static; }
.no-js .panel { position: relative; inset: auto; min-height: 100vh; opacity: 1; visibility: visible; }
.no-js .panel-in { pointer-events: auto; }
.no-js .scroll, .no-js #scene, .no-js .hud, .no-js .caption, .no-js .pause, .no-js .rail, .no-js #loader, .no-js .film { display: none; }
