@font-face { font-family: "Instrument Serif"; src: url("/exemples/verrier/fonts/instrument-serif.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/exemples/verrier/fonts/instrument-serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Hanken"; src: url("/exemples/verrier/fonts/hanken.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

/* Contrastes (WCAG) : ink/bone 15.6 · ink/ember 8.4 · ember-dk/bone 6.1 · muted/bone 6.8 · bone/night 16.2 · mist/night 9.7 */
:root {
  --night: #0d0a08;
  --night-2: #17110d;
  --ink: #1b1713;
  --bone: #f4efe6;
  --bone-2: #ebe4d6;
  --muted: #5c5247;
  --ember: #ff8a2b;
  --ember-dk: #9a3e00;
  --glow: #ffc45e;
  --sea: #8fd3c4;
  --sea-dk: #1f6f66;
  --mist: #c9d8d3;
  --line: rgba(27, 23, 19, .16);
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Hanken", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gut: clamp(16px, 4vw, 40px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bone); color: var(--ink); font-family: var(--sans); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, canvas { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.05; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
p { margin: 0 0 1em; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(1180px, 100% - 2 * var(--gut)); margin-inline: auto; }
.wrap.narrow { width: min(820px, 100% - 2 * var(--gut)); }
.small { font-size: .875rem; color: var(--muted); }
.noscript { padding: 24px; text-align: center; }

.demo { background: var(--night); color: var(--bone); font-size: .8125rem; position: relative; z-index: 60; }
.demo .wrap { padding-block: 8px; }
.demo a { color: var(--glow); font-weight: 500; text-underline-offset: 3px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .85em 1.5em; border-radius: 999px; font: 600 .95rem/1 var(--sans); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .25s, box-shadow .25s, background .25s, color .25s; }
.btn:hover { transform: translateY(-2px); }
.btn-ember { background: var(--ember); color: var(--ink); box-shadow: 0 6px 24px rgba(255, 138, 43, .28); }
.btn-ember:hover { box-shadow: 0 10px 34px rgba(255, 138, 43, .5); }
.btn-ember[disabled] { background: var(--bone-2); color: var(--muted); box-shadow: none; cursor: not-allowed; transform: none; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-glass { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .4); color: var(--bone); backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255, 255, 255, .2); }
.btn-sm { padding: .65em 1.15em; font-size: .85rem; }

/* En-tête */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(13, 10, 8, .78); color: var(--bone); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.bar { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 1.7rem/1 var(--serif); text-decoration: none; margin-right: auto; }
.brand-mark { width: 26px; height: 26px; color: var(--ember); }
.nav { display: flex; gap: 26px; }
.nav a { font-size: .9rem; text-decoration: none; opacity: .85; padding-block: 6px; background: linear-gradient(var(--ember), var(--ember)) 0 100% / 0 2px no-repeat; transition: background-size .3s, opacity .2s; }
.nav a:hover { opacity: 1; background-size: 100% 2px; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; color: inherit; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; transition: transform .3s; }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
@media (max-width: 860px) {
  .burger { display: block; }
  .bar .btn { display: none; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--night); padding: 8px var(--gut) 20px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .25s; }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid rgba(255, 255, 255, .08); }
}

/* Héros : la pièce se souffle pendant le défilement */
.forge { position: relative; height: 480vh; background: var(--night); color: var(--bone); }
.forge-stick { position: sticky; top: 64px; height: calc(100vh - 64px); height: calc(100svh - 64px); overflow: hidden; }
#forge-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.forge-vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 62% 50%, transparent 30%, rgba(0, 0, 0, .55) 100%); }
.forge-copy { position: absolute; left: var(--gut); top: 50%; transform: translateY(-50%); width: min(520px, 46vw); transition: opacity .6s, transform .6s; }
.eyebrow { font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; color: var(--glow); margin: 0 0 1.1em; }
.eyebrow.dark { color: var(--ember-dk); }
.forge-title { font-size: clamp(2.6rem, 6.2vw, 5.6rem); }
.forge-title em { font-style: italic; background: linear-gradient(95deg, var(--glow), var(--ember) 45%, var(--sea)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.forge-lead { margin-top: 1.2em; font-size: 1.05rem; max-width: 40ch; color: var(--mist); min-height: 3.4em; }
.forge-steps { position: absolute; left: var(--gut); bottom: 28px; display: flex; gap: 18px; }
.step { display: flex; align-items: center; gap: 8px; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; opacity: .38; transition: opacity .4s, color .4s; }
.step b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid currentColor; font-size: .72rem; }
.step.on { opacity: 1; color: var(--glow); }
.step.done { opacity: .7; }
.thermo { position: absolute; right: var(--gut); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.thermo-tube { width: 8px; height: min(38vh, 300px); border-radius: 8px; background: rgba(255, 255, 255, .12); overflow: hidden; display: flex; align-items: flex-end; }
.thermo-fill { width: 100%; height: 100%; border-radius: 8px; background: linear-gradient(0deg, #8a1c05, var(--ember) 50%, #fff1c2); transform-origin: bottom; }
.thermo-val { font: 1.15rem var(--serif); font-variant-numeric: tabular-nums; }
.forge-done { position: absolute; left: var(--gut); top: 50%; transform: translateY(-50%) translateX(-24px); opacity: 0; pointer-events: none; transition: opacity .7s, transform .7s; width: min(480px, 44vw); }
.forge-done.show { opacity: 1; transform: translateY(-50%); pointer-events: auto; }
.piece-name { font: italic 2.1rem/1.1 var(--serif); margin: 0 0 .2em; }
.piece-meta { font-size: .85rem; color: var(--mist); margin-bottom: 1.2em; }
.scroll-hint { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); margin: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--mist); transition: opacity .4s; }
.scroll-hint i { width: 1px; height: 36px; background: linear-gradient(var(--glow), transparent); animation: drip 1.8s ease-in-out infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.forge.late .forge-copy { opacity: 0; transform: translateY(-50%) translateX(-30px); pointer-events: none; }
.forge.started .scroll-hint { opacity: 0; }
@media (max-width: 760px) {
  .forge-copy { top: 7%; transform: none; width: calc(100% - 2 * var(--gut)); }
  .forge-title { font-size: 2.5rem; }
  .forge-lead { font-size: .95rem; }
  .forge.late .forge-copy { transform: translateX(-20px); }
  .forge-steps { gap: 10px; bottom: 16px; left: 50%; transform: translateX(-50%); }
  .step span { display: none; white-space: nowrap; }
  .step.on span { display: inline; }
  .scroll-hint { bottom: 64px; }
  .thermo { right: 10px; top: 56%; }
  .thermo-tube { height: 22vh; }
  .thermo-val { font-size: .95rem; }
  .forge-done { top: 7%; transform: translateX(-20px); width: calc(100% - 2 * var(--gut)); }
  .forge-done.show { transform: none; }
  .piece-name { font-size: 1.8rem; }
}
.forge.static { height: auto; }
.forge.static .forge-stick { position: relative; top: 0; height: 88vh; }
.forge.static .scroll-hint, .forge.static .thermo, .forge.static .forge-steps { display: none; }

/* Sections claires */
.section { padding-block: clamp(72px, 11vw, 140px); }
.sec-head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-lead { color: var(--muted); font-size: 1.1rem; margin-top: 1em; }
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
[data-reveal].in { opacity: 1; transform: none; }
.no-js [data-reveal], .reduced [data-reveal] { opacity: 1; transform: none; transition: none; }

.manifest { background: linear-gradient(180deg, var(--night) 0, var(--bone) 160px); padding-top: clamp(140px, 18vw, 240px); }
.manifest-text { font: clamp(1.7rem, 3.6vw, 2.7rem)/1.2 var(--serif); margin-bottom: 1.4em; }
.manifest-text em { color: var(--ember-dk); }
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 22px; border-top: 1px solid var(--line); padding-top: 28px; }
.facts b { display: block; font: 2.4rem/1 var(--serif); color: var(--ember-dk); }
.facts span { font-size: .85rem; color: var(--muted); }

/* Collection */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.chip { font: 500 .88rem var(--sans); padding: .55em 1.1em; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; transition: .2s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bone); border-color: var(--ink); }
/* La table de l'atelier : canevas qu'on fait glisser (calcin.js). Les photos sont sur blanc pur ;
   multiply les fond dans le crème, ombres et reflets compris. isolation garde le mélange dans la table. */
.collection { padding-bottom: clamp(40px, 6vw, 72px); }
.table { position: relative; height: clamp(540px, 84vh, 880px); background: var(--bone); border-block: 1px solid var(--line); isolation: isolate; overflow: hidden; }
.table.is-grid { height: auto; min-height: 0; overflow: visible; padding: 28px var(--gut) 120px; }
.table-view { position: absolute; inset: 0; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.table-view.dragging { cursor: grabbing; }
.table-view:focus-visible { outline: 3px solid var(--ink); outline-offset: -6px; border-radius: 0; }
.pc { position: absolute; left: 0; top: 0; mix-blend-mode: multiply; padding: 0; border: 0; background: none; cursor: pointer; transform-origin: 0 0; will-change: transform; -webkit-tap-highlight-color: transparent; }
.pc img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; transition: transform .6s cubic-bezier(.2, .7, .2, 1), opacity .5s, filter .5s; }
.pc:hover img, .pc:focus-visible img { transform: translateY(-8px) scale(1.035); }
.pc:focus-visible { outline: 2px solid var(--ink); outline-offset: 10px; border-radius: 12px; }
.pc-label { position: absolute; left: 50%; top: calc(100% + 6px); transform: translate(-50%, 6px); white-space: nowrap; font: 500 .82rem/1.3 var(--sans); color: var(--muted); text-align: center; opacity: 0; transition: opacity .35s, transform .35s; pointer-events: none; }
.pc-label b { display: block; font: 400 1.35rem/1.1 var(--serif); color: var(--ink); }
.pc:hover .pc-label, .pc:focus-visible .pc-label { opacity: 1; transform: translate(-50%, 0); }
.table-view.dragging .pc-label { opacity: 0; }
.pc.off { cursor: default; pointer-events: none; outline: none; }
.pc.off img { opacity: .1; filter: grayscale(1); transform: scale(.9); }
.pc.off .pc-label { display: none; }
@media (hover: none) { .pc-label { opacity: 1; transform: translate(-50%, 0); } }

.table-hint { position: absolute; right: var(--gut); top: 20px; z-index: 2; display: flex; align-items: center; gap: 8px; margin: 0; padding: .45em .9em; border-radius: 999px; background: var(--bone); white-space: nowrap; font-size: .82rem; color: var(--muted); pointer-events: none; transition: opacity .6s; }
.table.explored .table-hint, .table.is-grid .table-hint, .table.is-grid .table-zoom { opacity: 0; visibility: hidden; }
.table-zoom { position: absolute; right: var(--gut); bottom: 22px; z-index: 2; display: flex; gap: 6px; transition: opacity .4s; }
.table-zoom button { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--bone); color: var(--ink); font: 500 1.2rem/1 var(--sans); cursor: pointer; transition: border-color .2s, background .2s; }
.table-zoom button:hover { border-color: var(--ink); background: #fff; }

/* Barre flottante : compteur, filtres, bascule de vue */
.table-bar { position: absolute; left: 50%; bottom: 20px; z-index: 3; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; max-width: calc(100% - 2 * var(--gut) - 100px); padding: 6px; border-radius: 999px; background: var(--ink); color: var(--bone); box-shadow: 0 18px 40px -16px rgba(13, 10, 8, .55); }
.table.is-grid .table-bar { position: sticky; bottom: 20px; left: auto; transform: none; margin: 32px auto 0; width: max-content; }
.table-count { padding: 0 10px 0 12px; font: 500 .8rem var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--mist); white-space: nowrap; font-variant-numeric: tabular-nums; }
.table-bar .filters { flex-wrap: nowrap; gap: 2px; margin: 0; overflow-x: auto; scrollbar-width: none; }
.table-bar .filters::-webkit-scrollbar { display: none; }
.table-bar .chip { border: 0; color: var(--bone); white-space: nowrap; padding: .6em 1em; }
.table-bar .chip:hover { background: rgba(244, 239, 230, .12); }
.table-bar .chip[aria-pressed="true"] { background: var(--bone); color: var(--ink); }
.view-toggle { flex: none; font: 600 .85rem var(--sans); padding: .6em 1.1em; border-radius: 999px; border: 0; background: var(--ember); color: var(--ink); cursor: pointer; white-space: nowrap; }
.table-bar :focus-visible { outline-color: var(--glow); outline-offset: 2px; border-radius: 999px; }
@media (max-width: 1100px) { .table-bar { left: var(--gut); right: calc(var(--gut) + 96px); transform: none; max-width: none; } }
@media (max-width: 760px) {
  .table-bar { left: var(--gut); right: var(--gut); bottom: 74px; transform: none; max-width: none; }
  .table-count { display: none; }
  .table-zoom { bottom: 18px; }
  .table.is-grid .table-bar { width: auto; }
}

/* Vue grille : les mêmes photos, posées en rang sur le même crème */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: clamp(28px, 4vw, 56px) clamp(18px, 3vw, 40px); max-width: 1120px; margin: 0 auto; }
.tile { mix-blend-mode: multiply; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; text-align: center; animation: rise .7s both; }
.tile-img { position: relative; width: 100%; aspect-ratio: 1; display: grid; place-items: center; margin-bottom: 6px; }
.tile-img img { max-width: 82%; max-height: 82%; object-fit: contain; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.tile:hover .tile-img img { transform: translateY(-8px) scale(1.04); }
.tile-name { font: 1.5rem/1.15 var(--serif); }
.tile-price { font-size: .88rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.tile .badge { position: static; margin-top: 8px; font-size: .66rem; }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr 1fr; gap: 28px 12px; } .tile-name { font-size: 1.2rem; } .table.is-grid { padding-bottom: 150px; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Fiche d'une pièce */
.sheet { border: 0; padding: 0; width: min(920px, calc(100% - 32px)); max-height: calc(100dvh - 32px); border-radius: 24px; background: var(--bone); color: var(--ink); display: none; grid-template-columns: 1.1fr 1fr; overflow: auto; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.sheet[open] { display: grid; animation: sheet-in .45s cubic-bezier(.2, .7, .2, 1); }
.sheet::backdrop { background: rgba(13, 10, 8, .55); backdrop-filter: blur(6px); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.sheet-img { display: grid; place-items: center; padding: clamp(24px, 4vw, 48px); background: var(--bone); isolation: isolate; }
.sheet-img img { width: 100%; height: auto; max-height: 62vh; object-fit: contain; mix-blend-mode: multiply; }
.sheet-body { position: relative; display: flex; flex-direction: column; gap: 6px; padding: clamp(28px, 4vw, 48px) clamp(24px, 3.5vw, 40px); border-left: 1px solid var(--line); }
.sheet-body .badge { position: static; align-self: flex-start; margin-bottom: 10px; }
.sheet h3 { font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.05; }
.sheet-story { font-size: 1.02rem; margin: 14px 0 0; }
.sheet-close { position: absolute; right: 14px; top: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--bone); color: var(--ink); font: 1.5rem/1 var(--sans); cursor: pointer; }
.sheet-close:hover { border-color: var(--ink); }
@media (max-width: 700px) {
  .sheet { grid-template-columns: 1fr; }
  .sheet-img img { max-height: 38vh; }
  .sheet-body { border-left: 0; border-top: 1px solid var(--line); }
}
.reduced .pc img, .reduced .tile, .reduced .sheet[open] { transition: none; animation: none; }
.badge { position: absolute; left: 12px; top: 12px; z-index: 2; background: var(--night); color: var(--bone); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; padding: .35em .8em; border-radius: 999px; }
.badge.ember { background: var(--ember); color: var(--ink); }
.badge.sold { background: var(--bone); color: var(--muted); }
.card-meta { font-size: .85rem; color: var(--muted); margin: 0; }
.card-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font: 1.5rem var(--serif); font-variant-numeric: tabular-nums; }
.noel-note { margin-top: 28px; padding: 16px 20px; border-radius: 14px; background: var(--bone-2); font-size: .95rem; }

/* Savoir-faire (sombre) */
.craft { background: var(--night); color: var(--bone); }
.craft h2 { color: var(--bone); }
.craft-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
@media (max-width: 860px) { .craft-grid { grid-template-columns: 1fr; } }
.craft-copy p { color: var(--mist); }
/* Titre qui chauffe : --t (0 froid → 1 touché) et --h (chaleur du passage) sont posés par calcin.js */
.heat .w { --t: 0; --h: 0; color: color-mix(in oklab, var(--glow) calc(var(--h) * 100%), color-mix(in oklab, var(--bone) calc(var(--t) * 100%), #5d544b)); text-shadow: 0 0 calc(var(--h) * 22px) rgba(255, 138, 43, calc(var(--h) * .85)); }
.range { display: block; margin-top: 28px; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mist); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; margin: 14px 0 0; background: linear-gradient(90deg, #cfe3df 0%, #8a1c05 38%, var(--ember) 72%, #fff1c2 100%); outline-offset: 8px; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--bone); border: 3px solid var(--ember); cursor: grab; box-shadow: 0 0 0 6px rgba(255, 138, 43, .2); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--bone); border: 3px solid var(--ember); cursor: grab; }
.temp-out { display: block; font: 3.4rem/1 var(--serif); margin-top: 18px; font-variant-numeric: tabular-nums; }
.temp-state { margin-top: 10px; min-height: 3.6em; font-size: 1.05rem; color: var(--glow); }
.craft-viz canvas { width: min(100%, 460px); aspect-ratio: 1; margin-inline: auto; }
.craft-photo { margin: clamp(40px, 6vw, 80px) 0 0; border-radius: 22px; overflow: hidden; aspect-ratio: 21 / 9; background: var(--night-2); }
.craft-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 600px) { .craft-photo { aspect-ratio: 3 / 2; } }
.gestes { list-style: none; padding: 0; margin: clamp(48px, 7vw, 90px) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid rgba(255, 255, 255, .14); }
@media (max-width: 860px) { .gestes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gestes { grid-template-columns: 1fr; } }
.gestes li { padding: 26px 22px 6px 0; }
.gestes b { font: .9rem var(--sans); color: var(--ember); letter-spacing: .1em; }
.gestes h3 { font-size: 2rem; margin: .25em 0 .35em; }
.gestes p { font-size: .95rem; color: var(--mist); }

/* Stages */
.stages { background: var(--bone-2); }
.booking { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 36px; align-items: start; }
@media (max-width: 920px) { .booking { grid-template-columns: 1fr; } }
.b-step { border: 1px solid var(--line); background: var(--bone); border-radius: 18px; padding: 20px 22px 24px; margin: 0; min-width: 0; }
.b-step legend { font: 1.5rem var(--serif); padding: 0 8px; display: flex; gap: 10px; align-items: baseline; }
.b-step legend b { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--bone); font: 600 .78rem var(--sans); }
.choices { display: grid; gap: 10px; }
.choice { text-align: left; font: inherit; display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; color: var(--ink); transition: .2s; }
.choice:hover { border-color: var(--ink); }
.choice[aria-pressed="true"] { border-color: var(--ember-dk); box-shadow: 0 0 0 3px rgba(255, 138, 43, .35); }
.choice strong { font: 1.35rem var(--serif); font-weight: 400; }
.choice .p { font: 1.35rem var(--serif); }
.choice small { grid-column: 1 / -1; color: var(--muted); font-size: .85rem; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; max-height: 320px; overflow: auto; padding: 4px; }
.slot { font: inherit; text-align: left; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; color: var(--ink); line-height: 1.3; }
.slot b { display: block; font-size: .92rem; }
.slot span { font-size: .8rem; color: var(--muted); }
.slot:hover:not([disabled]) { border-color: var(--ink); }
.slot[aria-pressed="true"] { border-color: var(--ember-dk); box-shadow: 0 0 0 3px rgba(255, 138, 43, .35); }
.slot[disabled] { opacity: .5; cursor: not-allowed; background: var(--bone-2); }
.slot .few { color: var(--ember-dk); font-weight: 600; }
.fields { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.fields label:nth-child(n+2) { grid-column: 1 / -1; }
@media (max-width: 520px) { .fields { grid-template-columns: 1fr; } }
label { display: block; font-size: .85rem; font-weight: 500; }
input[type="text"], input[type="email"], input[type="number"], select, textarea { display: block; width: 100%; margin-top: 6px; padding: .8em .9em; font: 1rem var(--sans); color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 12px; }
.recap { grid-column: 1 / -1; background: var(--night); color: var(--bone); border-radius: 22px; padding: 26px clamp(20px, 3vw, 36px); display: grid; grid-template-columns: 1fr auto; gap: 14px 30px; align-items: center; }
@media (max-width: 680px) { .recap { grid-template-columns: 1fr; } }
.recap h3 { font-size: 2rem; }
.recap p { margin: .3em 0 0; color: var(--mist); font-size: .95rem; }
.recap .total { font: 3rem/1 var(--serif); color: var(--glow); font-variant-numeric: tabular-nums; }
.recap .done { grid-column: 1 / -1; padding: 14px 18px; border-radius: 14px; background: rgba(143, 211, 196, .14); border: 1px solid rgba(143, 211, 196, .5); color: var(--bone); }
.recap .done a { color: var(--sea); }

/* Sur mesure */
.custom { background: linear-gradient(180deg, var(--bone) 0, #d9e7e2 100%); }
.custom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
@media (max-width: 860px) { .custom-grid { grid-template-columns: 1fr; } }
.custom-copy > p { color: var(--muted); }
.cfg { margin-top: 28px; display: grid; gap: 20px; }
.cfg fieldset { border: 0; padding: 0; margin: 0; }
.cfg legend { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 10px; padding: 0; }
.pills, .swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font: 500 .85rem var(--sans); cursor: pointer; color: var(--ink); }
.swatch i { width: 24px; height: 24px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .25); }
.swatch[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(27, 23, 19, .15); }
.qty { display: flex; align-items: center; gap: 12px; font-size: .95rem; }
.qty input { width: 96px; margin: 0; }
.custom-out { position: relative; }
.custom-out canvas { width: min(100%, 440px); aspect-ratio: 520 / 560; margin-inline: auto; }
.quote { margin-top: 10px; background: var(--ink); color: var(--bone); border-radius: 18px; padding: 20px 24px; display: grid; gap: 4px; }
.quote .est { font: 2.4rem/1.1 var(--serif); color: var(--glow); font-variant-numeric: tabular-nums; }
.quote p { margin: 0; font-size: .92rem; color: var(--mist); }
.quote .btn { margin-top: 12px; justify-self: start; }

/* Atelier */
.visit-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
@media (max-width: 860px) { .visit-grid { grid-template-columns: 1fr; } }
.visit-photo { margin: 0; border-radius: 22px; overflow: hidden; background: var(--night-2); aspect-ratio: 3 / 2; }
.visit-photo img { width: 100%; height: 100%; object-fit: cover; }
.open-now { display: inline-flex; align-items: center; gap: 10px; padding: .55em 1em; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 500; font-size: .92rem; }
.open-now::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.open-now.on::before { background: var(--ember); box-shadow: 0 0 0 0 rgba(255, 138, 43, .6); animation: pulse 2s infinite; }
@keyframes pulse { to { box-shadow: 0 0 0 12px rgba(255, 138, 43, 0); } }
.hours { margin: 22px 0; }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hours dt { font-weight: 600; } .hours dd { margin: 0; color: var(--muted); text-align: right; }
address { font-style: normal; margin-bottom: 1em; }

.foot { background: var(--night); color: var(--mist); padding-block: 36px; font-size: .9rem; }
.foot p { margin: 0 0 .4em; } .foot a { color: var(--glow); }
.foot .small { color: var(--mist); opacity: .8; }

/* Dialogue + toast */
.ask { border: 0; border-radius: 22px; padding: 28px; width: min(480px, calc(100% - 32px)); background: var(--bone); color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.ask::backdrop { background: rgba(13, 10, 8, .72); backdrop-filter: blur(4px); }
.ask h3 { font-size: 2rem; } .ask-sub { color: var(--muted); font-size: .92rem; }
.ask label { margin-top: 14px; }
.ask-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); background: var(--ink); color: var(--bone); padding: 14px 22px; border-radius: 14px; font-size: .92rem; opacity: 0; pointer-events: none; transition: .4s; z-index: 80; max-width: calc(100% - 32px); box-shadow: 0 14px 40px rgba(0, 0, 0, .35); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .scroll-hint i, .open-now.on::before { animation: none; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}
