/* Tactilprint — styles du site */
:root { color-scheme: light; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
/* Atelier vitrine : un fond sable calme, une encre cacao, un seul accent terracotta, des filets laiton.
   La couleur vient de l'objet 3D posé sur son plateau, encadré de repères d'impression. */
:root {
  --sable: #EADFCB; --sable-2: #F5EDDF; --sable-3: #DDCEB4;
  --encre: #2A1C14; --encre-2: #6A5444; --filet: #CFBD9F;
  --terracotta: #A9472A; --terracotta-2: #8C381E; --sur-accent: #FFF6EA;
  --laiton: #8A6519; --or: #C9A24B;
  --ok: #46663E; --ok-fond: #DDE5CF; --alerte: #A3341F; --alerte-fond: #F3D9CC;
  --scene-a: #F9F2E5; --scene-b: #DCCBAF;
  --ombre: 70 44 22;
  --f-display: "Gloock", "Playfair Display", Georgia, "Times New Roman", serif;
  --f-text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-data: "DM Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r: 14px; --r-s: 9px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --sable: #1B1410; --sable-2: #261C16; --sable-3: #35271E;
    --encre: #F2E7D5; --encre-2: #BCA88F; --filet: #4B392C;
    --terracotta: #D46B42; --terracotta-2: #E38058; --sur-accent: #1B1410;
    --laiton: #DDB565; --or: #DDB565;
    --ok: #A4C294; --ok-fond: #2B3824; --alerte: #F2917A; --alerte-fond: #44241B;
    --scene-a: #6B5541; --scene-b: #2B1F18;
    --ombre: 0 0 0;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --sable: #1B1410; --sable-2: #261C16; --sable-3: #35271E;
  --encre: #F2E7D5; --encre-2: #BCA88F; --filet: #4B392C;
  --terracotta: #D46B42; --terracotta-2: #E38058; --sur-accent: #1B1410;
  --laiton: #DDB565; --or: #DDB565;
  --ok: #A4C294; --ok-fond: #2B3824; --alerte: #F2917A; --alerte-fond: #44241B;
  --scene-a: #6B5541; --scene-b: #2B1F18;
  --ombre: 0 0 0;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
body { background: var(--sable); color: var(--encre); font: 400 15px/1.55 var(--f-text); -webkit-font-smoothing: antialiased; min-height: 100%; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--sable); }
.wrap { max-width: 1240px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 400; line-height: 1.1; margin: 0; text-wrap: balance; letter-spacing: -0.005em; }
h1 { font-size: clamp(34px, 5.2vw, 60px); }
h2 { font-size: clamp(26px, 3.2vw, 38px); }
h3 { font-size: 21px; }
p { margin: 0; }
a { color: var(--terracotta-2); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 2px; border-radius: 4px; }
.eyebrow { font: 500 12px/1.3 var(--f-data); letter-spacing: 0.12em; text-transform: uppercase; color: var(--laiton); }
.data { font-family: var(--f-data); font-size: 12.5px; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.muted { color: var(--encre-2); }
.relief-txt { text-shadow: 0 1px 0 rgb(255 255 255 / .35), 0 -1px 0 rgb(var(--ombre) / .18); }

/* boutons, pastilles, puces */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 1px solid var(--terracotta); background: var(--terracotta); color: var(--sur-accent); font-weight: 600; text-decoration: none; transition: background .15s, transform .15s; }
.btn:hover { background: var(--terracotta-2); border-color: var(--terracotta-2); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--encre); border-color: var(--encre-2); }
.btn.ghost:hover { background: var(--sable-3); }
.btn.sm { min-height: 36px; padding: 6px 14px; font-size: 13.5px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 5px 13px; border-radius: 999px; border: 1px solid var(--filet); background: transparent; font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.chip:hover { border-color: var(--encre-2); }
.chip[aria-pressed="true"], .chip[aria-selected="true"] { background: var(--encre); color: var(--sable); border-color: var(--encre); }
.sw { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--filet); border-color: color-mix(in srgb, var(--encre) 34%, transparent); padding: 0; position: relative; flex: none; background: var(--c, #fff); }
.sw[aria-pressed="true"]::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--terracotta); }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inks { display: inline-flex; gap: 4px; vertical-align: middle; }
.inks i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--filet); border-color: color-mix(in srgb, var(--encre) 40%, transparent); }

/* en-tête */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--sable); border-bottom: 1px solid var(--filet); }
.top .wrap { display: flex; align-items: center; gap: 10px 22px; min-height: 58px; flex-wrap: wrap; padding-block: 6px; }
.brand { font: 400 25px/1 var(--f-display); letter-spacing: -0.01em; color: var(--encre); text-decoration: none; white-space: nowrap; }
.brand b { font-weight: 400; color: var(--terracotta-2); }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { padding: 8px 12px; border-radius: 999px; color: var(--encre); text-decoration: none; font-weight: 500; font-size: 14.5px; }
.nav a:hover { background: var(--sable-3); }
.nav a[aria-current="page"] { background: var(--sable-3); }
.cartbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--encre-2); background: transparent; font-weight: 600; text-decoration: none; color: var(--encre); font-size: 14.5px; }
.cartbtn .n { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--terracotta); color: var(--sur-accent); font: 500 12px/22px var(--f-data); text-align: center; }

/* plateau 3D */
.stage { position: relative; border-radius: var(--r); background: radial-gradient(120% 95% at 50% 34%, var(--scene-a), var(--scene-b)); border: 1px solid var(--filet); overflow: hidden; }
.stage canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.stage canvas.grabbing { cursor: grabbing; }
.stage canvas:focus-visible { outline-offset: -4px; border-radius: var(--r); }
.mark { position: absolute; width: 16px; height: 16px; border: 0 solid var(--encre-2); opacity: .6; pointer-events: none; }
.mark.tl { top: 10px; left: 10px; border-top-width: 1px; border-left-width: 1px; }
.mark.tr { top: 10px; right: 10px; border-top-width: 1px; border-right-width: 1px; }
.mark.bl { bottom: 10px; left: 10px; border-bottom-width: 1px; border-left-width: 1px; }
.mark.br { bottom: 10px; right: 10px; border-bottom-width: 1px; border-right-width: 1px; }
.nogl { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; color: var(--encre-2); }

/* accueil */
.view { padding-block: 28px 64px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center; }
.hero-copy { display: grid; gap: 20px; min-width: 0; }
.hero-copy p.lead { font-size: 17px; max-width: 52ch; color: var(--encre-2); }
.hero-copy em { font-style: normal; color: var(--terracotta-2); }
.specs { display: flex; flex-wrap: wrap; gap: 8px 18px; padding-top: 14px; border-top: 1px solid var(--filet); color: var(--encre-2); }
.hero-stage { display: grid; gap: 10px; min-width: 0; }
.hero-stage .stage { aspect-ratio: 1 / 0.94; max-width: 100%; }
.hero-stage .stage canvas { touch-action: pan-y; }
.tryrow { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 14px; align-items: center; }
.tryrow > span { font: 500 12px var(--f-data); text-transform: uppercase; letter-spacing: .1em; color: var(--encre-2); }
.dz { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--filet); background: var(--sable-2); padding: 3px; }
.dz canvas, .dz img { width: 100%; height: 100%; display: block; border-radius: 6px; }
.dz[aria-pressed="true"] { border: 2px solid var(--terracotta); padding: 2px; }
input[type="range"] { accent-color: var(--terracotta); width: 100%; min-width: 0; height: 28px; }
section.band { margin-top: 64px; display: grid; gap: 24px; }
.band-head { display: grid; gap: 8px; max-width: 62ch; }
.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.option { display: grid; grid-template-rows: auto 1fr auto; gap: 16px; padding: 24px; border-radius: var(--r); border: 1px solid var(--filet); background: var(--sable-2); min-width: 0; }
.option .tag { justify-self: start; font: 500 12px var(--f-data); letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--laiton); color: var(--laiton); }
.option ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; color: var(--encre-2); }
.option li { padding-left: 20px; position: relative; }
.option li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--or); }
.option .body { display: grid; gap: 10px; align-content: start; }
.steps4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--encre-2); counter-reset: s; padding: 0; margin: 0; list-style: none; }
.steps4 li { padding: 16px 18px 4px 0; display: grid; gap: 6px; align-content: start; counter-increment: s; min-width: 0; }
.steps4 li::before { content: "0" counter(s); font: 500 12px var(--f-data); color: var(--laiton); letter-spacing: .1em; }
.steps4 h3 { font-size: 20px; }
.grid-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.pcard { display: grid; grid-template-rows: auto 1fr; border-radius: var(--r); border: 1px solid var(--filet); background: var(--sable-2); overflow: hidden; text-align: left; padding: 0; min-width: 0; transition: transform .2s, box-shadow .2s; }
a.pcard, button.pcard { text-decoration: none; color: inherit; }
.pcard:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgb(var(--ombre) / .12); }
.pcard .ph { aspect-ratio: 1; background: radial-gradient(110% 90% at 50% 34%, var(--scene-a), var(--scene-b)); display: grid; place-items: center; overflow: hidden; }
.pcard .ph img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pcard .ph span { font: 400 22px var(--f-display); color: var(--encre-2); opacity: .5; }
.pcard .inf { padding: 14px 16px 16px; display: grid; gap: 6px; align-content: start; }
.pcard .inf .l1 { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.pcard h3 { font-size: 19px; }
.pcard .price { font: 500 14px var(--f-data); white-space: nowrap; }
.pcard .dots { display: flex; gap: 5px; flex-wrap: wrap; }
.pcard .dots i { width: 13px; height: 13px; border-radius: 50%; border: 1px solid var(--filet); border-color: color-mix(in srgb, var(--encre) 34%, transparent); }
.pcard .go { margin-top: 6px; font-weight: 600; color: var(--terracotta-2); font-size: 14px; }
.spec-table { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--encre-2); margin: 0; }
.spec-table div { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--filet); min-width: 0; }
.spec-table dt { font: 500 12px var(--f-data); text-transform: uppercase; letter-spacing: .1em; color: var(--encre-2); }
.spec-table dd { margin: 4px 0 0; font: 400 22px/1.2 var(--f-display); }
.two { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(20px, 4vw, 56px); align-items: start; }
details.faq { border-bottom: 1px solid var(--filet); }
details.faq summary { padding: 15px 28px 15px 0; cursor: pointer; font-weight: 600; list-style: none; position: relative; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font: 400 22px var(--f-data); color: var(--laiton); }
details.faq[open] summary::after { content: "–"; }
details.faq p { padding: 0 0 16px; color: var(--encre-2); max-width: 68ch; }
footer.foot { border-top: 1px solid var(--filet); margin-top: 24px; }
footer.foot .wrap { padding-block: 26px calc(30px + env(safe-area-inset-bottom, 0px)); display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: baseline; color: var(--encre-2); font-size: 13.5px; }
footer.foot .brand { font-size: 20px; }

/* boutique */
.shop-head { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: end; justify-content: space-between; margin-bottom: 22px; }
.banner2 { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; padding: 20px 22px; border-radius: var(--r); border: 1px dashed var(--laiton); }

/* studio */
.studio { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 20px; align-items: start; }
.stage-wrap { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 72px); min-width: 0; }
.stage.big { height: min(calc(100vh - 110px), 760px); min-height: 400px; }
.stage-top { position: absolute; top: 12px; left: 34px; right: 34px; display: flex; gap: 8px 12px; flex-wrap: wrap; align-items: center; pointer-events: none; }
.pill { font: 500 11.5px var(--f-data); letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--encre); color: var(--sable); }
.stage-top .nm { font-weight: 600; font-size: 14px; }
.stage-hint { position: absolute; left: 0; right: 0; bottom: 62px; text-align: center; font-size: 12.5px; color: var(--encre-2); pointer-events: none; padding-inline: 16px; transition: opacity .4s; }
.stage.used .stage-hint { opacity: 0; }
.tools { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--sable-2); border: 1px solid var(--filet); max-width: calc(100% - 20px); }
.tool { min-width: 38px; height: 38px; padding: 0 11px; border-radius: 999px; border: 0; background: transparent; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
.tool:hover { background: var(--sable-3); }
.tool[aria-pressed="true"] { background: var(--encre); color: var(--sable); }
.tool svg { width: 17px; height: 17px; flex: none; }
.panel { border: 1px solid var(--filet); border-radius: var(--r); background: var(--sable-2); min-width: 0; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 6px; border-bottom: 1px solid var(--filet); }
.seg button { border: 0; background: transparent; border-radius: 10px; padding: 9px 10px; text-align: left; display: grid; gap: 1px; min-width: 0; }
.seg button small { font: 500 11px var(--f-data); letter-spacing: .1em; text-transform: uppercase; color: var(--laiton); }
.seg button span { font-weight: 600; font-size: 14px; }
.seg button[aria-selected="true"] { background: var(--sable); box-shadow: inset 0 0 0 1px var(--encre-2); }
.stepnav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--filet); }
.stepnav button { border: 0; background: transparent; padding: 11px 4px 9px; font-size: 13px; font-weight: 600; color: var(--encre-2); border-bottom: 2px solid transparent; display: grid; gap: 2px; justify-items: center; min-width: 0; }
.stepnav button i { font: 500 11px var(--f-data); font-style: normal; color: var(--laiton); }
.stepnav button[aria-selected="true"] { color: var(--encre); border-bottom-color: var(--terracotta); }
.step { padding: 18px; display: grid; gap: 20px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field > label:not(.drop), .field > .lab { font-weight: 600; font-size: 13.5px; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.field > label:not(.drop) output, .field > .lab output, .lab .data { font-weight: 400; color: var(--encre-2); }
.hint { font-size: 13px; color: var(--encre-2); }
.ptiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ptile { border: 1px solid var(--filet); background: var(--sable); border-radius: 10px; padding: 4px 4px 6px; display: grid; gap: 2px; justify-items: center; font-size: 12px; font-weight: 600; min-width: 0; }
.ptile img, .ptile .ph0 { width: 100%; aspect-ratio: 1; object-fit: contain; display: block; }
.ptile span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.ptile[aria-pressed="true"] { border: 2px solid var(--terracotta); padding: 3px 3px 5px; }
.inp, select.inp, textarea.inp { width: 100%; min-height: 42px; padding: 9px 12px; border-radius: var(--r-s); border: 1px solid var(--filet); background: var(--sable); }
textarea.inp { resize: vertical; min-height: 84px; line-height: 1.45; }
.inp:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 1px; border-radius: var(--r-s); }
.cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.subtabs { display: flex; gap: 6px; flex-wrap: wrap; }
.dgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.dtile { border: 1px solid var(--filet); background: var(--sable); border-radius: 10px; padding: 4px; display: grid; gap: 3px; min-width: 0; }
.dtile canvas { width: 100%; aspect-ratio: 1; display: block; border-radius: 6px; }
.dtile span { font-size: 11px; font-weight: 600; line-height: 1.2; text-align: center; padding: 0 1px 2px; overflow-wrap: break-word; hyphens: auto; letter-spacing: -0.01em; }
.dtile[aria-pressed="true"] { border: 2px solid var(--terracotta); padding: 3px; }
.drop { display: grid; gap: 6px; justify-items: center; text-align: center; padding: 20px 14px; border-radius: var(--r-s); border: 1px dashed var(--encre-2); background: var(--sable); cursor: pointer; }
.drop.over { border-color: var(--terracotta); background: var(--sable-3); }
.drop strong { font-weight: 600; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.check { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--terracotta); flex: none; }
.note { padding: 11px 13px; border-radius: var(--r-s); background: var(--sable-3); font-size: 13.5px; }
.note.ok { background: var(--ok-fond); color: var(--ok); }
.note.bad { background: var(--alerte-fond); color: var(--alerte); }
.note ul { margin: 6px 0 0; padding-left: 18px; }
.aistatus { display: flex; gap: 10px; align-items: center; font-size: 13.5px; color: var(--encre-2); min-height: 24px; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--filet); border-top-color: var(--terracotta); animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.photo { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; align-items: center; }
.photo img { width: 84px; height: 84px; object-fit: cover; border-radius: var(--r-s); border: 1px solid var(--filet); display: block; }
dl.recap { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 7px 16px; font-size: 14px; }
dl.recap dt { color: var(--encre-2); }
dl.recap dd { margin: 0; text-align: right; font-weight: 500; overflow-wrap: anywhere; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--filet); border-radius: 999px; background: var(--sable); }
.qty button { width: 38px; height: 38px; border: 0; background: transparent; border-radius: 999px; font-size: 18px; }
.qty button:hover { background: var(--sable-3); }
.qty output { min-width: 30px; text-align: center; font: 500 14px var(--f-data); }
.how { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; counter-reset: h; }
.how li { counter-increment: h; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; font-size: 14px; }
.how li::before { content: counter(h); width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--laiton); color: var(--laiton); font: 500 12px/24px var(--f-data); text-align: center; }
.buybar { position: sticky; bottom: 0; display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--filet); background: var(--sable-2); border-radius: 0 0 var(--r) var(--r); }
.buybar .tot { display: grid; line-height: 1.2; min-width: 0; }
.buybar .tot b { font: 400 24px var(--f-display); }
.buybar .tot small { color: var(--encre-2); font-size: 12px; }
.buybar .acts { display: flex; gap: 8px; flex: none; }
.buybar .btn { white-space: nowrap; }

/* panier */
.cart { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.lines { display: grid; gap: 12px; }
.line { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 14px; padding: 12px; border: 1px solid var(--filet); border-radius: var(--r); background: var(--sable-2); align-items: center; }
.line img { width: 96px; height: 96px; border-radius: var(--r-s); display: block; background: var(--scene-b); }
.line h3 { font-size: 18px; }
.line .meta { font-size: 13px; color: var(--encre-2); display: grid; gap: 2px; margin-top: 4px; }
.line .side { display: grid; gap: 8px; justify-items: end; }
.line .side b { font: 500 15px var(--f-data); }
.linkbtn { background: none; border: 0; padding: 2px 0; color: var(--terracotta-2); font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.box { border: 1px solid var(--filet); border-radius: var(--r); background: var(--sable-2); padding: 20px; display: grid; gap: 16px; }
.sum { display: grid; gap: 8px; font-size: 14.5px; }
.sum div { display: flex; justify-content: space-between; gap: 12px; }
.sum .total { padding-top: 10px; border-top: 1px solid var(--filet); font-weight: 600; }
.sum .total b { font: 400 24px var(--f-display); }
.err { color: var(--alerte); font-size: 13px; min-height: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.check a, .note a, footer.foot a { color: inherit; }
.empty { display: grid; gap: 14px; justify-items: start; padding: 34px 26px; border: 1px dashed var(--encre-2); border-radius: var(--r); }
.orderno { font: 500 20px var(--f-data); letter-spacing: .04em; user-select: all; }
.doc { max-width: 780px; padding-block: 36px 64px; display: grid; gap: 14px; }
.doc h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 6px; }
.doc h2 { font-size: 23px; margin-top: 22px; }
.doc p, .doc li { max-width: 68ch; }
.doc ul, .doc ol { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
mark.todo { background: #F6D365; color: #2A1C14; padding: 0 4px; border-radius: 3px; }
.todo-banner { padding: 12px 14px; border: 1px dashed var(--alerte); border-radius: var(--r-s); color: var(--alerte); background: var(--alerte-fond); font-weight: 600; }
.toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); background: var(--encre); color: var(--sable); padding: 11px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 80; max-width: calc(100% - 32px); text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .studio { grid-template-columns: 1fr; gap: 12px; }
  .stage-wrap { top: calc(env(safe-area-inset-top, 0px) + 57px); z-index: 20; }
  .stage.big { height: 43vh; min-height: 270px; }
  .stage-hint { display: none; }
  .cart, .two { grid-template-columns: 1fr; }
  .steps4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .view { padding-block: 18px 48px; }
  .top .wrap { min-height: 52px; gap: 4px 10px; }
  .brand { font-size: 22px; }
  .nav a { padding: 7px 9px; font-size: 13.5px; }
  .nav a[data-nav="accueil"] { display: none; }
  .top .wrap { flex-wrap: nowrap; }
  .buybar .btn .t { display: none; }
  .buybar .btn { padding-inline: 16px; }
  .cartbtn { padding: 5px 10px; min-height: 36px; }
  .cartbtn .lbl { display: none; }
  .options, .spec-table { grid-template-columns: 1fr; }
  .spec-table { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pcard .inf { padding: 10px 12px 12px; }
  .pcard h3 { font-size: 17px; }
  .pcard .inf .l1 { flex-direction: column; gap: 2px; }
  .option { padding: 18px; }
  .tool .t { display: none; }
  .line { grid-template-columns: 72px minmax(0, 1fr); }
  .line img { width: 72px; height: 72px; }
  .line .side { grid-column: 1 / -1; grid-auto-flow: column; justify-content: space-between; align-items: center; justify-items: start; }
  section.band { margin-top: 48px; }
  .step { padding: 14px; }
  .buybar { padding-inline: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation-duration: .001s !important; scroll-behavior: auto !important; }
}
