/* =========================================================
   HORTENNS TCE — Studio Salle de bain (prototype)
   Thème sombre du site : encre / cuivre.
   ========================================================= */
:root {
  --ink: #0E0F11;
  --ink-2: #16181C;
  --ink-3: #1F2731;
  --ink-4: #6B6E74;
  --paper: #F4F1EC;
  --paper-2: #ECE7DE;
  --copper: #B87333;
  --copper-light: #D89464;
  --copper-glow: rgba(184, 115, 51, 0.25);
  --line: rgba(255, 255, 255, 0.10);
  --ok: #6FBF8F;
  --warn: #E0A458;
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-sans: "Inter Tight", "Inter", -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", monospace;
  --radius: 4px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(14,15,17,0.88);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 32px);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--paper); }
.brand img { height: 34px; width: auto; }
.brand span { font-family: var(--font-display); font-size: 18px; letter-spacing: 0.04em; }
.brand em { color: var(--copper-light); font-style: normal; }
.proto-badge {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  color: var(--copper-light); border: 1px solid rgba(184,115,51,0.5);
  padding: 5px 10px; border-radius: 999px; white-space: nowrap;
}
.progress { height: 3px; background: rgba(255,255,255,0.07); }
.progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--copper), var(--copper-light)); transition: width 500ms var(--ease); }

/* ---------- Layout ---------- */
.app { max-width: 1080px; margin: 0 auto; padding: clamp(24px, 5vh, 48px) clamp(16px, 4vw, 32px) 120px; }
.screen { animation: rise 500ms var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.step-tag { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; color: var(--copper-light); text-transform: uppercase; margin-bottom: 10px; }
h1.q-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(26px, 4.2vw, 40px); line-height: 1.12; margin-bottom: 10px; }
h1.q-title em { font-style: italic; color: var(--copper-light); }
.q-sub { color: rgba(244,241,236,0.62); max-width: 640px; margin-bottom: 28px; }

h2.sec { font-family: var(--font-display); font-weight: 500; font-size: 22px; margin: 34px 0 6px; }
.sec-sub { color: rgba(244,241,236,0.55); font-size: 14px; margin-bottom: 16px; }

/* ---------- Dropzone photo ---------- */
.dropzone {
  border: 1.5px dashed rgba(244,241,236,0.28);
  border-radius: var(--radius); background: var(--ink-2);
  padding: clamp(28px, 6vh, 56px) 24px; text-align: center;
  transition: border-color 200ms, background 200ms;
}
.dropzone.drag { border-color: var(--copper); background: #1a1d22; }
.dz-icon { font-size: 40px; margin-bottom: 10px; }
.dz-title { font-family: var(--font-display); font-size: 20px; margin-bottom: 6px; }
.dz-sub { color: rgba(244,241,236,0.55); font-size: 14px; margin-bottom: 20px; }
.dz-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.photo-preview { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.photo-preview img { width: 100%; max-height: 460px; object-fit: contain; background: #000; }
.photo-preview .redo {
  position: absolute; top: 12px; right: 12px;
  background: rgba(14,15,17,0.8); color: var(--paper); border: 1px solid var(--line);
  padding: 8px 14px; border-radius: 999px; font-size: 13px;
}
.photo-tag {
  position: absolute; bottom: 12px; left: 12px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  background: rgba(14,15,17,0.8); border: 1px solid var(--line);
  padding: 5px 10px; border-radius: 999px; color: rgba(244,241,236,0.8);
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: none; border-radius: var(--radius);
  padding: 13px 26px; font-size: 15px; font-weight: 600;
  background: linear-gradient(120deg, var(--copper), #a3652c);
  color: #fff; transition: transform 150ms, box-shadow 150ms, opacity 150ms;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px var(--copper-glow); }
.btn:disabled { opacity: 0.4; pointer-events: none; }
.btn.ghost { background: transparent; border: 1px solid rgba(244,241,236,0.3); color: var(--paper); }
.btn.ghost:hover { border-color: var(--copper-light); box-shadow: none; }
.btn.small { padding: 9px 16px; font-size: 13px; }

.navbar-bottom {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  background: rgba(14,15,17,0.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.navbar-inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px clamp(16px, 4vw, 32px);
}
.back-link { background: none; border: none; color: rgba(244,241,236,0.55); font-size: 14px; }
.back-link:hover { color: var(--paper); }

/* ---------- Cartes de style ---------- */
.grid { display: grid; gap: 14px; }
.grid.styles { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.card {
  position: relative; background: var(--ink-2); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; text-align: left;
  color: var(--paper); padding: 0;
  transition: transform 180ms var(--ease), border-color 180ms, box-shadow 180ms;
}
.card:hover { transform: translateY(-3px); border-color: rgba(184,115,51,0.55); }
.card.sel { border-color: var(--copper); box-shadow: 0 0 0 1px var(--copper), 0 12px 30px rgba(0,0,0,0.4); }
.card .thumb { height: 140px; width: 100%; object-fit: cover; }
.card .body { display: block; padding: 13px 15px 15px; }
.card .t { display: block; font-weight: 600; font-size: 15px; }
.card .d { display: block; color: rgba(244,241,236,0.55); font-size: 13px; margin-top: 3px; line-height: 1.4; }
.card .check {
  position: absolute; top: 10px; right: 10px; width: 26px; height: 26px;
  border-radius: 50%; background: rgba(14,15,17,0.75); border: 1.5px solid rgba(244,241,236,0.4);
  display: flex; align-items: center; justify-content: center; font-size: 14px; color: transparent;
}
.card.sel .check { background: var(--copper); border-color: var(--copper); color: #fff; }
.card .price-hint { display: block; font-family: var(--font-mono); font-size: 11px; color: var(--copper-light); margin-top: 6px; }

/* petites cartes option (équipement) */
.grid.opts { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.opt {
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; color: var(--paper); text-align: left; font-size: 14px; font-weight: 600;
  transition: border-color 150ms;
}
.opt small { display: block; font-weight: 400; color: rgba(244,241,236,0.5); font-size: 12px; margin-top: 2px; }
.opt.sel { border-color: var(--copper); box-shadow: 0 0 0 1px var(--copper); }

/* ---------- Slider surface ---------- */
.slider-wrap { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.slider-val { font-family: var(--font-display); font-size: 34px; color: var(--copper-light); margin-bottom: 8px; }
.slider-val small { font-size: 16px; color: rgba(244,241,236,0.6); }
input[type="range"] { width: 100%; accent-color: var(--copper); height: 32px; }

/* ---------- Textarea ---------- */
textarea.desc {
  width: 100%; min-height: 130px; resize: vertical;
  background: var(--ink-2); color: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; font-family: inherit; font-size: 15px; line-height: 1.5;
}
textarea.desc:focus { outline: none; border-color: var(--copper); }
.hints { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.hint-chip {
  background: none; border: 1px solid rgba(244,241,236,0.22); color: rgba(244,241,236,0.7);
  font-size: 12px; padding: 6px 12px; border-radius: 999px;
}
.hint-chip:hover { border-color: var(--copper-light); color: var(--paper); }

/* ---------- Simulation ---------- */
.sim-panel { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; }
.sim-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.sim-head .t { font-weight: 600; }
.sim-status { font-family: var(--font-mono); font-size: 12px; color: rgba(244,241,236,0.6); display: flex; align-items: center; gap: 8px; }
.spinner {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(244,241,236,0.2); border-top-color: var(--copper-light);
  animation: spin 800ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.ba { position: relative; user-select: none; -webkit-user-select: none; overflow: hidden; background: #000; }
.ba img { width: 100%; display: block; pointer-events: none; }
.ba .after-wrap { position: absolute; inset: 0; overflow: hidden; }
.ba .after-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba .divider-line {
  position: absolute; top: 0; bottom: 0; width: 2px; background: var(--paper);
  box-shadow: 0 0 12px rgba(0,0,0,0.6); pointer-events: none;
}
.ba .handle {
  position: absolute; top: 50%; transform: translate(-50%, -50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--copper); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 15px; pointer-events: none; box-shadow: 0 4px 14px rgba(0,0,0,0.5);
}
.ba input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: ew-resize; margin: 0;
}
.ba .tag { position: absolute; top: 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; background: rgba(14,15,17,0.75); padding: 4px 10px; border-radius: 999px; pointer-events: none; }
.ba .tag.avant { left: 12px; }
.ba .tag.apres { right: 12px; color: var(--copper-light); }
.sim-empty { padding: 44px 24px; text-align: center; color: rgba(244,241,236,0.5); font-size: 14px; }
.sim-error { padding: 24px; color: var(--warn); font-size: 14px; }
.sim-foot { display: flex; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }

/* ---------- Conseils ---------- */
.advice { border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2); margin-bottom: 12px; overflow: hidden; }
.advice label { display: flex; gap: 14px; padding: 16px 18px; cursor: pointer; align-items: flex-start; }
.advice input { margin-top: 4px; width: 17px; height: 17px; accent-color: var(--copper); flex-shrink: 0; }
.advice label > span:last-child { display: block; flex: 1; }
.advice .a-t { font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.advice .a-d { display: block; color: rgba(244,241,236,0.6); font-size: 14px; margin-top: 3px; }
.advice .a-p { display: block; font-family: var(--font-mono); font-size: 12px; color: var(--copper-light); margin-top: 5px; }
.advice.locked { border-color: rgba(184,115,51,0.45); }
.advice.locked input { accent-color: var(--copper); pointer-events: none; }
.badge {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px; border: 1px solid;
}
.badge.oblig { color: #E8A87C; border-color: rgba(232,168,124,0.6); background: rgba(184,115,51,0.12); }
.badge.reco { color: var(--ok); border-color: rgba(111,191,143,0.5); background: rgba(111,191,143,0.08); }
.badge.idee { color: rgba(244,241,236,0.6); border-color: rgba(244,241,236,0.3); }

.ai-box { border: 1px solid rgba(184,115,51,0.4); border-radius: var(--radius); background: linear-gradient(180deg, rgba(184,115,51,0.08), transparent); padding: 18px 20px; margin: 18px 0; }
.ai-box .ai-t { font-weight: 600; color: var(--copper-light); display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ai-box .ai-c { font-size: 14px; color: rgba(244,241,236,0.85); white-space: pre-wrap; }
.ai-box .ai-c strong { color: var(--copper-light); }

/* ---------- Timeline étapes ---------- */
.timeline { position: relative; margin: 20px 0 10px; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: rgba(244,241,236,0.14); }
.tl-item { position: relative; padding: 0 0 22px; }
.tl-item::before {
  content: ""; position: absolute; left: -27px; top: 5px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--ink-3); border: 2px solid rgba(244,241,236,0.35);
}
.tl-item.oblig::before { background: var(--copper); border-color: var(--copper-light); box-shadow: 0 0 10px var(--copper-glow); }
.tl-item .tl-t { font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tl-item .tl-d { color: rgba(244,241,236,0.6); font-size: 14px; margin-top: 2px; max-width: 640px; }
.tl-item.spec { background: rgba(184,115,51,0.08); border: 1px solid rgba(184,115,51,0.4); border-radius: var(--radius); padding: 14px 16px 14px 16px; margin-left: -16px; margin-bottom: 22px; }
.tl-item.spec::before { top: 19px; left: -11px; }

/* ---------- Devis ---------- */
.devis-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.devis-table th { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(244,241,236,0.5); text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.devis-table td { padding: 11px 12px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.devis-table td.num, .devis-table th.num { text-align: right; font-family: var(--font-mono); font-size: 13px; white-space: nowrap; }
.devis-table .unit-price { color: rgba(244,241,236,0.72); font-size: 12px; }
.devis-table .unit-price small { display: block; margin-top: 2px; font-family: var(--font-sans); font-size: 10px; color: rgba(244,241,236,0.45); }
.devis-table .line-total { color: var(--paper); }
.devis-table .lot-row td { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--copper-light); padding-top: 18px; border-bottom: none; }
.totaux { margin-top: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2); padding: 18px 22px; max-width: 420px; margin-left: auto; }
.totaux .row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 14px; color: rgba(244,241,236,0.75); }
.totaux .row.grand { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; font-size: 19px; font-weight: 700; color: var(--paper); }
.totaux .row.grand .v { color: var(--copper-light); font-family: var(--font-mono); }
.disclaimer { margin-top: 18px; font-size: 12.5px; color: rgba(244,241,236,0.45); max-width: 640px; }
.devis-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }

.gamme-note { font-size: 13px; color: rgba(244,241,236,0.55); margin-top: 8px; }

.recap-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 6px; max-width: 640px; }
.recap-photos figure { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.recap-photos img { width: 100%; height: 170px; object-fit: cover; }
.recap-photos figcaption { font-family: var(--font-mono); font-size: 11px; padding: 6px 10px; color: rgba(244,241,236,0.6); }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 20px clamp(16px, 4vw, 32px) 90px; }
.foot p { max-width: 1080px; margin: 0 auto; font-size: 12px; color: rgba(244,241,236,0.35); }

/* ---------- Print (pré-devis) ---------- */
@media print {
  body { background: #fff; color: #111; }
  .topbar, .navbar-bottom, .foot, .no-print, .devis-actions { display: none !important; }
  .app { padding: 0; max-width: none; }
  .screen { animation: none; }
  h1.q-title, h1.q-title em { color: #111; }
  .totaux, .slider-wrap { background: #fff; border-color: #ccc; }
  .totaux .row { color: #333; }
  .totaux .row.grand, .totaux .row.grand .v { color: #111; }
  .devis-table td, .devis-table th { border-color: #ddd; color: #222; }
  .devis-table .lot-row td { color: #8a5a27; }
  .disclaimer { color: #666; }
  .recap-photos img { height: 200px; }
  .advice, .timeline .tl-d { color: #444; }
}

@media (max-width: 640px) {
  .proto-badge { display: none; }
  .recap-photos { grid-template-columns: 1fr; }
  .devis-table,
  .devis-table tbody,
  .devis-table tr,
  .devis-table td { display: block; width: 100%; }
  .devis-table thead { display: none; }
  .devis-table tr:not(.lot-row) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px 12px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .devis-table tr:not(.lot-row) td { padding: 0; border: 0; }
  .devis-table tr:not(.lot-row) td:first-child {
    grid-column: 1 / -1;
    margin-bottom: 4px;
    font-weight: 600;
  }
  .devis-table td.num { text-align: left; white-space: normal; }
  .devis-table .qty::before,
  .devis-table .unit-price::before,
  .devis-table .line-total::before {
    display: block;
    margin-bottom: 2px;
    font-family: var(--font-sans);
    font-size: 9px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(244,241,236,0.42);
  }
  .devis-table .qty::before { content: "Quantité"; }
  .devis-table .unit-price::before { content: "Prix unitaire HT"; }
  .devis-table .line-total::before { content: "Total estimé HT"; }
  .devis-table .line-total { text-align: right; }
  .devis-table .lot-row { padding-top: 8px; }
  .devis-table .lot-row td { padding: 16px 0 6px; }
}

/* =========================================================
   STUDIO IA — éléments ajoutés par la version multi-métiers
   ========================================================= */

/* Passerelle vers l'estimation détaillée (écran de choix du métier) */
.alt-cta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  margin-top: 34px; padding: 22px 26px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(255,255,255,0.02);
}
.alt-cta strong { display: block; font-size: 15px; margin-bottom: 4px; }
.alt-cta span { display: block; font-size: 13.5px; color: rgba(244,241,236,0.55); line-height: 1.5; max-width: 62ch; }

/* Mentions discrètes */
.micro { font-size: 12.5px; color: rgba(244,241,236,0.45); line-height: 1.6; margin-top: 16px; }
.micro-mono { font-family: var(--font-m); font-size: 12px; color: var(--copper-light); }
.opt-tag { font-weight: 400; color: rgba(244,241,236,0.45); font-size: 15px; }

/* Titres de sous-section */
.sec.sm { font-size: 17px; }

/* Bornes sous les curseurs */
.slider-bounds {
  display: flex; justify-content: space-between;
  font-family: var(--font-m); font-size: 11px;
  color: rgba(244,241,236,0.4); margin-top: 8px;
}

/* Fourchette mise en avant en tête du devis */
.totaux.hero-range { margin-top: 8px; }
.totaux.hero-range .row.grand { align-items: flex-start; }
/* La fourchette ne doit jamais se couper : le « € » final passait à la ligne
   par-dessus la mention « coordination comprise » sur les montants longs. */
.totaux.hero-range .row.grand .v { white-space: nowrap; }
.totaux.hero-range .row.grand > span:first-child { padding-right: 14px; }
.totaux.hero-range .row.grand small {
  display: block; font-weight: 400; font-size: 12.5px;
  color: rgba(244,241,236,0.5); margin-top: 3px;
}
.totaux .row.grand em { font-style: italic; color: var(--copper-light); }

/* Simulation : message doux (mode exemple) */
.sim-error.soft { color: rgba(244,241,236,0.55); border-color: var(--line); }

/* Bloc de rappel / envoi du lead */
.lead-box {
  margin-top: 40px; padding: 26px clamp(18px, 3vw, 30px);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(255,255,255,0.02);
}
.lead-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; margin-top: 18px; }
.lead-grid label { font-family: var(--font-m); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(244,241,236,0.5); align-self: end; }
.lead-grid input {
  grid-column: auto; width: 100%; padding: 12px 14px;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 10px;
  color: var(--paper); font-family: inherit; font-size: 15px;
}
.lead-grid input:focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; }
.lead-grid label { grid-column: 1 / -1; margin-bottom: -8px; }
.consent { display: flex; gap: 11px; align-items: flex-start; margin-top: 18px; font-size: 13px; line-height: 1.55; color: rgba(244,241,236,0.7); cursor: pointer; }
.consent input { margin-top: 3px; accent-color: var(--copper); }
.consent a { text-decoration: underline; }
.lead-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.lead-ok {
  margin-top: 16px; padding: 18px 22px; border-radius: 12px;
  border: 1px solid rgba(120,180,120,0.45); color: #9ED4A0; font-size: 14.5px; line-height: 1.6;
}
.lead-err { margin-top: 14px; color: #E8A187; font-size: 13.5px; }

@media (max-width: 620px) {
  .lead-grid { grid-template-columns: 1fr; }
  .alt-cta { flex-direction: column; align-items: flex-start; }
}

/* =========================================================
   INTÉGRATION DANS LE SITE (studio.html)
   La nav du site est fixe : on décale le contenu et on
   place la barre de progression juste en dessous.
   ========================================================= */
.progress i, #progress-bar {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--copper), var(--copper-light));
  transition: width 500ms var(--ease);
}
body.studio-page .progress {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  height: 3px; background: rgba(255,255,255,0.08);
}
body.studio-page .app { padding-top: clamp(96px, 13vh, 132px); }
body.studio-page .foot { padding-bottom: 96px; }

/* La barre d'action basse ne doit pas masquer le pied de page */
.navbar-bottom { z-index: 80; }

@media print {
  body.studio-page .nav, body.studio-page .mobile-menu,
  body.studio-page .progress, body.studio-page .foot { display: none !important; }
  body.studio-page .app { padding-top: 0; }
}

/* ---------- V9 : panier de lots, questions, saisie libre ---------- */
.panier { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,0.02); padding: 6px 20px 14px; margin-bottom: 34px; }
.panier-head { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 0 10px; border-bottom: 1px solid var(--line); }
.panier-head h2 { font-family: var(--font-d); font-size: 19px; font-weight: 500; }
.panier-head span { font-family: var(--font-m); font-size: 11px; color: var(--copper-light); }
.panier-row { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.panier-row:last-child { border-bottom: none; }
.pr-main b { display: block; font-size: 15px; }
.pr-main small { display: block; font-size: 12.5px; color: rgba(244,241,236,0.5); margin-top: 2px; }
.pr-price { font-family: var(--font-m); font-size: 12.5px; color: var(--copper-light); white-space: nowrap; }
.pr-actions { display: flex; gap: 8px; }
.mini { background: none; border: 1px solid var(--line); color: rgba(244,241,236,0.75); border-radius: 100px; padding: 6px 13px; font-size: 12px; cursor: pointer; }
.mini:hover { border-color: var(--copper); color: var(--paper); }
.mini.danger:hover { border-color: #C4664A; color: #E8A187; }
.badge-added { position: absolute; top: 10px; left: 10px; font-family: var(--font-m); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; background: var(--copper); color: #fff; padding: 5px 9px; border-radius: 100px; }

.qblock { margin-bottom: 30px; }
.multi-hint { font-size: 12.5px; color: rgba(244,241,236,0.45); margin: -6px 0 10px; }
.qhint { display: grid; grid-template-columns: 22px 1fr; gap: 10px; margin-top: 12px; padding: 13px 16px; border-left: 2px solid var(--copper); background: rgba(184,115,51,0.07); border-radius: 0 10px 10px 0; }
.qhint p { font-size: 13.5px; line-height: 1.6; color: rgba(244,241,236,0.8); }

.numrow { display: flex; align-items: baseline; gap: 10px; }
.numinput { width: 130px; padding: 12px 14px; font-family: var(--font-d); font-size: 26px; background: var(--ink-2); border: 1px solid var(--line); border-radius: 12px; color: var(--paper); }
.numinput:focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; }
.numinput:disabled { opacity: 0.35; }
.numunit { font-family: var(--font-m); font-size: 13px; color: var(--copper-light); }
.numslider { width: 100%; margin-top: 14px; }
.numslider:disabled { opacity: 0.3; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.preset { background: none; border: 1px solid var(--line); color: rgba(244,241,236,0.7); border-radius: 100px; padding: 8px 14px; font-size: 13px; cursor: pointer; }
.preset:hover { border-color: var(--copper); }
.preset.sel { border-color: var(--copper); background: rgba(184,115,51,0.16); color: var(--paper); }

.opt.multi { position: relative; padding-left: 44px; }
.opt.multi .tick { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; border: 2px solid var(--line); border-radius: 6px; }
.opt.multi.sel .tick { background: var(--copper); border-color: var(--copper); }
.opt.multi.sel .tick::after { content: "✓"; color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center; height: 100%; }

.skip-line { display: block; margin: 18px auto 0; background: none; border: none; color: rgba(244,241,236,0.6); font-size: 14px; text-decoration: underline; cursor: pointer; }
.skip-line:hover { color: var(--copper-light); }

.lot-block { margin-top: 34px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.lot-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 16px 20px; background: rgba(255,255,255,0.03); border-bottom: 1px solid var(--line); }
.lot-head h2 { font-family: var(--font-d); font-size: 18px; font-weight: 500; }
.lot-head span { font-family: var(--font-m); font-size: 12.5px; color: var(--copper-light); white-space: nowrap; }
.lot-block .devis-table { margin: 0; }
.lot-block .micro { padding: 0 20px 14px; margin-top: 6px; }
@media (max-width: 620px) { .panier-row { grid-template-columns: 1fr; gap: 8px; } }

/* =========================================================
   Compteur d'estimation en direct (demande client 2026-08-09)
   Barre collante sous la navigation : démarre à 0 €, se met à
   jour à chaque réponse. Masquée à l'impression du pré-devis.
   ========================================================= */
.live-est {
  /* La nav du site est en position:fixed — la barre se place dessous
     et y reste collée au défilement. */
  position: sticky; top: 78px; z-index: 900;
  margin-top: 92px;
  background: rgba(14,15,17,0.96);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
body.studio-page .app { padding-top: 26px; }
@media (max-width: 760px) {
  .live-est { top: 64px; margin-top: 76px; }
}
.live-inner {
  max-width: 1180px; margin: 0 auto; padding: 10px clamp(18px, 4vw, 40px);
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
}
.live-k {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(244,241,236,0.55);
}
.live-v {
  font-family: var(--font-mono); font-size: 19px; font-weight: 600;
  color: var(--copper-light); white-space: nowrap;
  transition: color 200ms ease;
}
.live-v.bump { color: #fff; }
.live-note { font-size: 12.5px; color: rgba(244,241,236,0.45); }
@media (max-width: 640px) {
  .live-inner { gap: 8px; padding: 8px 18px; }
  .live-v { font-size: 16px; }
  .live-note { display: none; }
}
@media (max-width: 360px) {
  .live-inner { gap: 4px; }
  .live-k { flex-basis: 100%; }
  .live-v { font-size: 15px; }
  .totaux.hero-range .row.grand { flex-direction: column; gap: 8px; }
  .totaux.hero-range .row.grand > span:first-child { padding-right: 0; }
}
@media print { .live-est { display: none; } }

/* ---------- Options illustrées (demande client 2026-08-09) ----------
   Une photo sur chaque choix : le visiteur reconnaît la prestation
   avant de lire l'intitulé. Les options sans photo restent valides. */
.grid.opts { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.opt.has-shot { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.opt .opt-shot {
  width: 100%; height: 108px; object-fit: cover; display: block;
  border-bottom: 1px solid var(--line); filter: saturate(.92);
}
.opt.has-shot .opt-txt { padding: 12px 14px 14px; }
.opt.has-shot.sel .opt-shot { filter: saturate(1.05) brightness(1.05); }
.opt.multi.has-shot { padding-left: 0; }
/* La coche se place SUR la photo, en haut à droite : posée sur le texte
   elle recouvrait le début de l'intitulé. */
.opt.multi.has-shot .tick {
  top: 10px; right: 10px; left: auto; transform: none;
  background: rgba(14,15,17,.72); border-color: rgba(244,241,236,.55);
}
.opt.multi.has-shot.sel .tick { background: var(--copper); border-color: var(--copper); }

/* ---------- Sortie du parcours (demande client 2026-08-09) ----------
   Le visiteur doit voir en permanence qu'il peut abandonner. */
.navbar-inner .nav-left { display: flex; align-items: center; gap: 18px; }
.quit-link {
  background: none; border: none; padding: 0;
  font-size: 13px; color: rgba(244,241,236,0.38);
  text-decoration: underline; text-underline-offset: 3px;
}
.quit-link:hover { color: var(--copper-light); }
@media (max-width: 520px) {
  .navbar-inner .nav-left { gap: 12px; }
  .quit-link { font-size: 12px; }
}

/* ---------- Reprise d'un projet enregistré ---------- */
.resume-note {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-bottom: 22px; padding: 11px 16px;
  border: 1px solid rgba(184,115,51,0.45); border-radius: var(--radius);
  background: rgba(184,115,51,0.08);
  font-size: 13.5px; color: rgba(244,241,236,0.8);
}
.resume-note button {
  background: none; border: none; padding: 0;
  color: var(--copper-light); font-size: 13.5px;
  text-decoration: underline; text-underline-offset: 3px;
}
@media print { .resume-note { display: none; } }

/* ---------- Transparence photo et contenu public du Studio ---------- */
.privacy-note {
  margin-top: 18px; padding: 16px 18px;
  border-left: 3px solid var(--copper);
  background: rgba(184,115,51,0.08);
  color: rgba(244,241,236,0.78);
}
.privacy-note strong { display: block; margin-bottom: 5px; color: var(--paper); }
.privacy-note p { font-size: 13px; line-height: 1.6; }
.privacy-note a { color: var(--copper-light); text-decoration: underline; text-underline-offset: 3px; }

.studio-seo { border-top: 1px solid var(--line); padding: clamp(64px,8vw,110px) 20px; }
.studio-seo-inner { max-width: 1120px; margin: 0 auto; }
.studio-seo h2 {
  max-width: 18ch; margin: 10px 0 18px;
  font-family: var(--font-d); font-size: clamp(32px,5vw,58px); font-weight: 400; line-height: 1.05;
}
.studio-seo h3 { margin: 38px 0 16px; font-family: var(--font-d); font-size: 23px; font-weight: 500; }
.studio-seo p { max-width: 76ch; color: rgba(244,241,236,0.68); line-height: 1.7; }
.studio-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; margin: 38px 0 48px; border-block: 1px solid var(--line); }
.studio-steps > div { min-width: 0; padding: 28px; border-right: 1px solid var(--line); }
.studio-steps > div:last-child { border-right: 0; }
.studio-steps strong { font-family: var(--font-m); font-size: 11px; color: var(--copper-light); }
.studio-steps h3 { margin: 14px 0 8px; font-size: 19px; }
.studio-steps p { font-size: 13.5px; }
.studio-categories { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px 22px; list-style: none; }
.studio-categories li { padding: 11px 0; border-bottom: 1px solid var(--line); color: rgba(244,241,236,0.78); }
.studio-faq { margin-top: 52px; }
.studio-faq p { padding: 14px 0; border-bottom: 1px solid var(--line); }
.studio-faq a { color: var(--copper-light); }
@media (max-width: 720px) {
  .studio-steps, .studio-categories { grid-template-columns: 1fr; }
  .studio-steps > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .studio-steps > div:last-child { border-bottom: 0; }
}
