/* ==========================================================================
   TENON — le site public : configurateur en tête, puis l'atelier raconté.
   Téléphone d'abord (390 × 844) ; ordinateur ≥ 1024 px : la scène à gauche (60 %),
   les réglages à droite.
   ========================================================================== */

/* ---------- En-tête ---------- */
.hd { position: sticky; top: 0; z-index: 50; height: var(--hd); background: rgba(243, 238, 230, .9); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); transition: box-shadow .3s; }
.hd.is-stuck { box-shadow: 0 1px 0 var(--rule); }
.hd__in { height: 100%; display: flex; align-items: center; gap: 12px; padding: 0 16px; max-width: 1600px; margin: 0 auto; }
.hd .logo__tag { display: none; }
.hd__nav { display: none; }
.hd__right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.hd__rdv { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 6px; font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.hd__rdv .ico { display: none; width: 18px; height: 18px; color: var(--brass-ink); }
.hd__rdv span { border-bottom: 1px solid var(--brass); padding-bottom: 1px; }
.hd .seg button { min-height: 34px; padding: 0 10px; }
@media (min-width: 760px) { .hd .logo__tag { display: block; } .hd__rdv .ico { display: block; } .hd__in { padding: 0 28px; } }
@media (min-width: 1180px) {
  .hd__nav { display: flex; gap: 26px; margin-left: 40px; }
  .hd__nav a { font-size: 14px; font-weight: 500; color: var(--ink-2); text-decoration: none; padding: 12px 0; }
  .hd__nav a:hover { color: var(--brass-ink); }
}

/* ---------- Configurateur ---------- */
.cfg { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); }
.cfg__intro { padding: 12px 16px 10px; }
.cfg__title { margin: 0 0 12px; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.04; letter-spacing: -.012em; text-wrap: balance; }
.cfg__title em { font-style: italic; color: var(--walnut); }
.cfg__pieces { padding-bottom: 2px; }
.cfg__stage { position: relative; height: clamp(330px, 51svh, 520px); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.cfg__stage .fv { position: absolute; inset: 0; }
.cfg__notes { padding: 0 16px; }
.cfg__notes:empty { display: none; }
.cfg__note { position: relative; margin: 12px 0 0; padding: 12px 14px 12px 40px; border-radius: 12px; background: var(--brass-soft); color: var(--brass-ink); font-size: 14px; line-height: 1.45; animation: note-in .5s var(--ease); }
.cfg__note::before { content: ""; position: absolute; left: 14px; top: 14px; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid currentColor; background: radial-gradient(circle, currentColor 0 1.6px, transparent 2px) 50% 70% / 100% 100% no-repeat; }
.cfg__note.is-red { background: rgba(180, 68, 47, .1); color: var(--red); }
.cfg__note + .cfg__note { margin-top: 8px; }
@keyframes note-in { from { opacity: 0; transform: translateY(-4px); } }
.cfg__ctrl { padding: 14px 16px 0; min-width: 0; }
.cfg__tabs { margin-bottom: 14px; }
.cfg__tabs button { padding: 0 6px; font-size: 13px; min-height: 40px; }
.cfg__fine { margin: 14px 0 0; padding-bottom: 22px; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.pane { min-height: 210px; }
.pane[hidden] { display: none; }

/* Dimensions */
.dim { display: grid; gap: 14px; }
.dim__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 2px 12px; }
.dim__row label { font-size: 14px; font-weight: 600; }
.dim__row output { font: 500 15px/1 var(--mono); color: var(--ink); letter-spacing: -.02em; }
.dim__row output small { font-size: 11px; color: var(--muted); margin-left: 3px; }
.dim__row input { grid-column: 1 / -1; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; margin: 0; touch-action: pan-y; }
.range::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: linear-gradient(to right, var(--brass) 0 var(--p, 50%), var(--sand-2) var(--p, 50%)); }
.range::-moz-range-track { height: 3px; border-radius: 3px; background: var(--sand-2); }
.range::-moz-range-progress { height: 3px; background: var(--brass); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -10.5px; border-radius: 50%; background: var(--paper); border: 2px solid var(--brass); box-shadow: 0 3px 10px rgba(35, 28, 22, .2); }
.range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--paper); border: 2px solid var(--brass); }
.facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.fact { padding: 6px 10px; border-radius: 8px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--rule); font: 500 12px/1.3 var(--mono); color: var(--ink-2); letter-spacing: -.01em; }

/* Façades */
.sw-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 8px; }
.sw { display: grid; justify-items: center; gap: 6px; padding: 4px 0; text-align: center; min-height: 44px; }
.sw__chip { position: relative; width: 100%; max-width: 64px; aspect-ratio: 1; border-radius: 12px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(35, 28, 22, .12), 0 6px 14px -10px rgba(35, 28, 22, .5); transition: box-shadow .2s, transform .25s var(--ease); }
.sw__chip svg { width: 100%; height: 100%; }
.sw[aria-pressed="true"] .sw__chip { box-shadow: 0 0 0 2px var(--linen), 0 0 0 4px var(--brass); transform: translateY(-2px); }
.sw__n { font-size: 12.5px; font-weight: 600; line-height: 1.2; }
.sw__r { margin-top: -4px; font: 500 10px/1.2 var(--mono); color: var(--muted); letter-spacing: .02em; text-transform: uppercase; }
.mat-line { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--rule); font-size: 13.5px; color: var(--ink-2); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.mat-line b { font-weight: 600; }
.mat-line span { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }

/* Poignées / intérieurs : cartes d'option */
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.opt { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 4px 10px; min-height: 64px; padding: 10px 10px; border-radius: 14px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--rule); text-align: left; transition: box-shadow .2s, background-color .2s; }
.opt svg.pic { width: 44px; height: 44px; grid-row: 1 / span 2; }
.opt b { font-size: 13.5px; font-weight: 600; line-height: 1.2; }
.opt small { font-size: 11.5px; color: var(--muted); line-height: 1.25; }
.opt em { font-style: normal; font: 500 11px/1.2 var(--mono); color: var(--brass-ink); }
.opt[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--brass); background: #fffdf9; }
.opt[aria-disabled="true"] { opacity: .45; }
.int-cols { display: flex; gap: 6px; margin-bottom: 12px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.int-cols::-webkit-scrollbar { display: none; }
.int-col { flex: none; min-width: 52px; min-height: 44px; padding: 0 12px; border-radius: 12px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--rule); font: 500 12.5px/1 var(--mono); color: var(--ink-2); }
.int-col[aria-pressed="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
.int-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; font-size: 13px; color: var(--muted); }
.int-head b { color: var(--ink); font-size: 14px; }
.int-more { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; }
.toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 13.5px; font-weight: 500; }
.toggle i { position: relative; width: 40px; height: 24px; border-radius: 999px; background: var(--sand-2); transition: background-color .2s; flex: none; }
.toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--paper); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .25s var(--ease); }
.toggle[aria-pressed="true"] i { background: var(--brass); }
.toggle[aria-pressed="true"] i::after { transform: translateX(16px); }
.toggle em { font-style: normal; font: 500 11px/1 var(--mono); color: var(--brass-ink); }

/* Barre de prix : opaque, collée en bas de l'écran tant que le configurateur est visible */
.pbar { position: sticky; bottom: 0; z-index: 40; margin: 16px -16px 0; padding: 10px 16px calc(10px + var(--safe-b)); display: flex; align-items: center; gap: 10px; background: var(--ink); color: var(--paper); box-shadow: 0 -12px 30px -18px rgba(35, 28, 22, .5); transition: transform .35s var(--ease), opacity .3s; }
.pbar__price { flex: 1; min-width: 0; display: grid; }
.pbar__amt { font-family: var(--serif); font-weight: 400; font-size: 29px; line-height: 1; letter-spacing: -.01em; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.pbar__sub { margin-top: 3px; font-size: 11.5px; line-height: 1.3; color: rgba(251, 248, 243, .66); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pbar__sub a { color: var(--brass-2); text-decoration: none; }
@media (max-width: 1023px) { .pbar__sub { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } }
.pbar__s-s { display: none; }
@media (max-width: 1023px) { .pbar__s-l { display: none; } .pbar__s-s { display: inline; } }
.pbar__btns { display: flex; gap: 8px; flex: none; }
.pbar .btn--ghost { box-shadow: inset 0 0 0 1px rgba(251, 248, 243, .28); color: var(--paper); }
.pbar__rdv-l { display: none; }
.pbar .btn--brass { padding: 0 16px; }
html:has(.sheet.is-open) .pbar { transform: translateY(110%); opacity: 0; }
.cfg__fine { position: relative; z-index: 1; }

@media (min-width: 1024px) {
  .cfg { grid-template-columns: minmax(0, 1.55fr) minmax(400px, 1fr); grid-template-rows: auto auto 1fr; min-height: calc(100svh - var(--hd) - 34px); border-bottom: 1px solid var(--rule); }
  .cfg__stage { grid-column: 1; grid-row: 1 / span 3; position: sticky; top: var(--hd); height: calc(100svh - var(--hd) - 34px); min-height: 560px; border: 0; border-right: 1px solid var(--rule); }
  .cfg__intro { grid-column: 2; padding: 34px 36px 6px; }
  .cfg__title { font-size: 46px; margin-bottom: 18px; }
  .cfg__notes { grid-column: 2; padding: 0 36px; }
  .cfg__ctrl { grid-column: 2; padding: 18px 36px 0; }
  .chips { margin: 0; padding: 2px 0; flex-wrap: wrap; overflow: visible; }
  .pbar { position: static; margin: 20px 0 0; padding: 18px 20px; border-radius: 18px; box-shadow: var(--shadow); flex-wrap: wrap; }
  .pbar__amt { font-size: 38px; }
  .pbar__btns { width: 100%; }
  .pbar__btns .btn { flex: 1; }
  .pbar .btn--icon { width: auto; padding: 0 16px; }
  .pbar__rdv-l { display: inline; }
  .sw-grid { gap: 14px 10px; }
}
@media (min-width: 1400px) { .cfg__intro, .cfg__ctrl { padding-left: 56px; padding-right: 56px; } .cfg__notes { padding-left: 56px; padding-right: 56px; } }

/* ---------- Sections ---------- */
.sec { padding: 72px 0; }
.sec--paper { background: var(--paper); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.sec__head { max-width: 780px; margin-bottom: 30px; }
.sec__title { margin: 12px 0 12px; font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 5.6vw, 64px); line-height: 1; letter-spacing: -.015em; text-wrap: balance; }
.sec__title em { font-style: italic; color: var(--walnut); }
.sec__lead { margin: 0; max-width: 58ch; font-size: 16.5px; line-height: 1.55; color: var(--ink-2); }
@media (min-width: 1024px) { .sec { padding: 120px 0; } .sec__head { margin-bottom: 48px; } }

/* Réalisations */
.reals { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.real { display: grid; grid-template-rows: auto auto; text-align: left; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--rule); overflow: hidden; transition: transform .35s var(--ease), box-shadow .3s; }
.real:hover { transform: translateY(-3px); border-color: var(--rule-2); box-shadow: var(--shadow); }
.real__fig { aspect-ratio: 4 / 3; background: var(--linen); border-bottom: 1px solid var(--rule); padding: 10px; }
.real__fig svg { width: 100%; height: 100%; }
.real__b { padding: 16px 18px 18px; display: grid; gap: 6px; }
.real__t { font-family: var(--serif); font-size: 25px; line-height: 1.05; }
.real__m { font: 500 12px/1.4 var(--mono); color: var(--brass-ink); letter-spacing: -.01em; }
.real__s { font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.real__go { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.real__go .ico { width: 16px; height: 16px; }
@media (min-width: 680px) { .reals { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .reals { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }

/* Matériaux */
.mats { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.mat { padding: 20px; border-radius: var(--r-lg); background: var(--linen); box-shadow: inset 0 0 0 1px var(--rule); display: grid; gap: 10px; align-content: start; }
.mat__fig { height: 118px; margin: -4px -4px 4px; }
.mat__fig svg { width: 100%; height: 100%; }
.mat h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.05; }
.mat__cost { font: 500 13px/1 var(--mono); color: var(--brass-ink); }
.mat dl { margin: 0; display: grid; gap: 8px; }
.mat dt { font: 500 10.5px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.mat dd { margin: 2px 0 0; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
@media (min-width: 760px) { .mats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .mats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hw { margin-top: 38px; padding-top: 26px; border-top: 1px solid var(--rule); display: grid; gap: 14px; }
.hw__t { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 28px; }
.hw__list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 28px; }
.hw__list li { padding: 12px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 2px; }
.hw__list b { font-size: 15px; font-weight: 600; }
.hw__list span { font-size: 14px; color: var(--muted); }
.hw__g { display: flex; align-items: center; gap: 10px; margin: 6px 0 0; font-weight: 600; color: var(--ok); }
@media (min-width: 900px) { .hw { grid-template-columns: 260px minmax(0, 1fr); } .hw__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hw__g { grid-column: 2; } }

/* De la planche au meuble (défilement) */
.plank { position: relative; height: 420svh; background: var(--ink); color: var(--paper); }
.plank__sticky { position: sticky; top: var(--hd); height: calc(100svh - var(--hd)); overflow: hidden; display: flex; align-items: stretch; }
.plank__in { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; gap: 10px; padding-top: 22px; padding-bottom: 18px; height: 100%; }
.plank .kicker { color: var(--brass-2); }
.plank .sec__title { color: var(--paper); font-size: clamp(30px, 5vw, 58px); margin-bottom: 6px; }
.plank .sec__title em { color: var(--oak); }
.plank__stat { margin: 0; font-size: 12.5px; color: rgba(251, 248, 243, .7); min-height: 1.4em; }
.plank__stat b { color: var(--brass-2); font-weight: 500; }
.plank__fig { position: relative; min-height: 0; display: grid; place-items: center; clip-path: polygon(-200vw 0, 300vw 0, 300vw 100%, -200vw 100%); }
.plank__fig > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.plank__steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.plank__steps li { padding-top: 10px; border-top: 2px solid rgba(251, 248, 243, .14); transition: border-color .4s, opacity .4s; opacity: .45; }
.plank__steps li.is-on { border-color: var(--brass); opacity: 1; }
.plank__steps b { display: block; font: 500 11px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.plank__steps span { display: none; margin-top: 6px; font-size: 13.5px; line-height: 1.4; color: rgba(251, 248, 243, .75); }
.plank__cap { margin: 0; min-height: 2.9em; font-size: 14.5px; line-height: 1.45; color: rgba(251, 248, 243, .84); }
@media (min-width: 760px) { .plank__cap { display: none; } }
@media (min-width: 760px) { .plank__steps span { display: block; } .plank__in { gap: 18px; padding-top: 40px; padding-bottom: 34px; } }

/* Livraison */
.liv__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; align-items: center; }
.liv__fig { margin: 0; width: 100%; max-width: 500px; justify-self: center; padding: 18px; border-radius: var(--r-lg); background: var(--paper); box-shadow: inset 0 0 0 1px var(--rule); }
.liv__fig svg { width: 100%; height: auto; }
.liv__fig figcaption { margin-top: 10px; font: 500 11.5px/1.4 var(--mono); color: var(--muted); }
.liv__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.liv__list li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.liv__list .ico { color: var(--brass-ink); margin-top: 2px; }
.liv__list b { display: block; font-size: 15.5px; }
.liv__list span { font-size: 14.5px; color: var(--ink-2); line-height: 1.45; }
@media (min-width: 900px) { .liv__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 60px; } }

/* Paiement */
.plans { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.plan { padding: 22px 20px; border-radius: var(--r-lg); background: var(--linen); box-shadow: inset 0 0 0 1px var(--rule); }
.plan--x3 { background: var(--ink); color: var(--paper); box-shadow: none; }
.plan h3 { margin: 0 0 4px; font-family: var(--serif); font-weight: 400; font-size: 27px; line-height: 1.05; }
.plan p { margin: 0 0 16px; font-size: 14px; color: var(--muted); }
.plan--x3 p { color: rgba(251, 248, 243, .66); }
.plan__steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.plan__steps li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--rule); font-size: 14.5px; }
.plan--x3 .plan__steps li { border-color: rgba(251, 248, 243, .14); }
.plan__steps b { font: 500 15px/1 var(--mono); letter-spacing: -.02em; white-space: nowrap; }
.plan__steps i { font-style: normal; font: 500 11px/1 var(--mono); color: var(--brass-ink); margin-left: 6px; }
.plan--x3 .plan__steps i { color: var(--brass-2); }
.plan__no { margin-top: 12px; font: 500 11.5px/1.4 var(--mono); color: var(--ok); }
.plan--x3 .plan__no { color: #9fc4a6; }
.modes { margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13.5px; color: var(--muted); }
.modes span.tag { font-size: 12px; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }

/* Suivi */
.track-sec { padding: 56px 0 72px; }
.follow { display: grid; gap: 16px; padding: 24px 20px; border-radius: var(--r-lg); background: var(--paper); box-shadow: inset 0 0 0 1px var(--rule); }
.follow__t { margin: 10px 0 0; font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.05; }
.follow__t em { font-style: italic; color: var(--walnut); }
.follow .input { font-family: var(--mono); letter-spacing: .02em; }
@media (min-width: 900px) { .follow { grid-template-columns: minmax(0, 1.4fr) minmax(0, 220px) auto; align-items: end; padding: 32px 36px; } .follow__f { align-self: end; } }

/* Pied de page */
.ft { padding: 40px 0 120px; background: var(--linen); border-top: 1px solid var(--rule); }
.ft__in { display: grid; gap: 14px; font-size: 13.5px; color: var(--muted); }
.ft p { margin: 0; line-height: 1.55; }
.ft__fine { font-size: 12px; }
.is-embed .pch, .is-embed .ft { display: none; }

/* ---------- Feuilles : contenu ---------- */
.recap { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px; border-radius: 16px; background: var(--linen); }
.recap__fig { aspect-ratio: 1; border-radius: 10px; background: var(--paper); padding: 4px; }
.recap__fig svg { width: 100%; height: 100%; }
.recap__t { font-family: var(--serif); font-size: 21px; line-height: 1.1; }
.recap__m { margin-top: 6px; font: 500 11.5px/1.45 var(--mono); color: var(--ink-2); letter-spacing: -.01em; }
.lines { margin: 14px 0 0; padding: 0; list-style: none; }
.lines li { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: 13.5px; }
.lines li span { min-width: 0; color: var(--ink-2); }
.lines li b { font: 500 13px/1.4 var(--mono); white-space: nowrap; letter-spacing: -.02em; }
.lines li.is-total { border-bottom: 0; padding-top: 12px; font-weight: 600; font-size: 15px; }
.lines li.is-total b { font-size: 16px; }
.paychoice { display: grid; gap: 8px; margin: 18px 0 0; }
.paychoice > p { margin: 0 0 2px; font-size: 13px; font-weight: 600; color: var(--muted); }
.payopt { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--linen); text-align: left; box-shadow: inset 0 0 0 1px var(--rule); }
.payopt i { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--rule-2); margin-top: 1px; }
.payopt[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--brass); background: #fffdf9; }
.payopt[aria-pressed="true"] i { border: 6px solid var(--brass); }
.payopt b { font-size: 14px; }
.payopt span { display: block; margin-top: 3px; font: 500 11.5px/1.4 var(--mono); color: var(--ink-2); }
.form { display: grid; gap: 12px; margin-top: 18px; }
.form__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.persona { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 12px 14px; border-radius: 14px; background: var(--linen); font-size: 14px; }
.persona .av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); font-weight: 600; font-size: 14px; flex: none; }
.honest { margin: 14px 0 0; display: flex; gap: 10px; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.honest .ico { color: var(--brass-ink); margin-top: 1px; }
.sheet .btn--brass.btn--wide { width: 100%; margin-top: 16px; min-height: 54px; font-size: 16px; }
.slots { display: grid; gap: 14px; margin-top: 6px; }
.slots__day b { display: block; margin-bottom: 8px; font-size: 13.5px; font-weight: 600; }
.slots__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.slot { min-height: 44px; border-radius: 12px; background: var(--linen); box-shadow: inset 0 0 0 1px var(--rule); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.slot[aria-pressed="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
.slot:disabled { opacity: .38; text-decoration: line-through; cursor: default; }
.sheet__lead { margin: 0 0 14px; font-size: 14px; color: var(--ink-2); line-height: 1.45; }

/* ---------- Pastille de suivi ---------- */
.track { position: fixed; z-index: 70; left: 50%; bottom: calc(16px + var(--safe-b)); transform: translateX(-50%); display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 24px); min-height: 48px; padding: 0 16px 0 14px; border-radius: 999px; background: var(--paper); color: var(--ink); text-decoration: none; box-shadow: 0 0 0 1px var(--rule), var(--shadow-lg); font-size: 13.5px; font-weight: 500; transition: opacity .35s, transform .4s var(--ease); }
.track[hidden] { display: none; }
.track__txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--brass); flex: none; box-shadow: 0 0 0 0 rgba(176, 135, 58, .5); animation: dot 2s infinite; }
.track .ico { width: 16px; height: 16px; color: var(--brass-ink); }
.track.is-bump { animation: bump .6s var(--ease); }
@keyframes dot { 70% { box-shadow: 0 0 0 9px rgba(176, 135, 58, 0); } 100% { box-shadow: 0 0 0 0 rgba(176, 135, 58, 0); } }
@keyframes bump { 30% { transform: translateX(-50%) scale(1.05); } }
.has-track .pmode { bottom: calc(max(16px, env(safe-area-inset-bottom)) + 60px); }
.pm-away .pmode, .tr-away .track { opacity: 0; pointer-events: none; }
.pmode { transition: bottom .4s var(--ease), opacity .35s, transform .4s var(--ease); }
.pm-away .pmode { transform: translateX(-50%) translateY(18px); }
.tr-away .track { transform: translateX(-50%) translateY(18px); }
html:has(.sheet.is-open) .track { opacity: 0; pointer-events: none; }
@media (min-width: 1024px) { .track { left: 24px; transform: none; } .tr-away .track { transform: translateY(18px); } }

/* Révélation douce au défilement */
.reveal [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.reveal [data-reveal].is-in { opacity: 1; transform: none; }
.is-new { animation: flash 2.4s var(--ease); }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 3px var(--brass); } }

/* Page « en direct » : le téléphone du client */
.is-duo .hd__nav, .is-duo .hd__rdv { display: none; }

html:has(.sheet.is-open) .toasts { opacity: 0; }

/* Écrans étroits (dont le téléphone de la page « en direct ») : le prix et « Valider » tiennent sur une ligne */
.pbar__v-s { display: none; }
@media (max-width: 400px) { .pbar { gap: 8px; } .pbar__sub { font-size: 11px; } .pbar__amt { font-size: 25px; } .pbar__btns { gap: 6px; } .pbar .btn--brass { padding: 0 14px; } }
@media (max-width: 370px) { .pbar__amt { font-size: 23px; } .pbar__v-l { display: none; } .pbar__v-s { display: inline; } .pbar .btn--brass { padding: 0 18px; } }
/* Téléphone : la barre de prix colle au bas de l'écran pendant tout le configurateur,
   même quand une note de règle allonge la scène (son bloc conteneur devient la section entière) */
@media (max-width: 1023px) {
  .cfg__ctrl { display: contents; }
  .cfg__tabs { margin: 14px 16px; }
  .cfg__panes { min-width: 0; padding: 0 16px; }
  .pbar { margin: 16px 0 0; }
  .cfg__fine { margin: 14px 16px 0; }
}

/* Page « en direct » sur un petit téléphone : le titre se fait discret, la scène et ses cotes passent avant */
@media (max-height: 640px) and (max-width: 1023px) {
  .is-duo .cfg__intro { padding-top: 6px; }
  .is-duo .cfg__title { font-size: 23px; margin-bottom: 8px; }
}

/* Ordinateur : la bascule se range en bas à gauche, sous le plan, loin des poignées et de la cote */
@media (min-width: 1024px) {
  .pmode { left: 24px; transform: none; }
  .pm-away .pmode { transform: translateY(18px); }
  /* le plan coté s'arrête au-dessus de la bascule (et de la pastille de suivi quand elle s'ajoute) :
     la chaîne des colonnes et la cote de largeur restent dégagées, avec une marge sous le chiffre */
  html:not(.is-embed) .cfg__stage .fv__plan { bottom: 84px; }
  html.has-track:not(.is-embed) .cfg__stage .fv__plan { bottom: 144px; }
}
.hd .logo, .hd .logo svg { flex: none; }
@media (max-width: 380px) { .hd__in { gap: 6px; padding: 0 12px; } .hd .seg button { padding: 0 8px; min-width: 36px; } .hd .logo__name { font-size: 19px; letter-spacing: .12em; } .hd .logo { gap: 7px; } .hd .logo svg { width: 26px; height: 26px; } .hd__rdv { padding: 0 2px; font-size: 12.5px; } }
