/* ============================================================================
 * Atelier Vermont · Outils en ligne (devis, grand projet, SAV), 29/09/2026
 * ----------------------------------------------------------------------------
 * Reprise de css/vermont.css (site Clairbaie, 21/09/2026) passee en version
 * CLAIRE pour coller a l'accueil : fond lin, encre foret, accent cuivre,
 * Fraunces + Inter Tight auto-hebergees dans fonts/. Les classes .vm-* sont
 * inchangees : les scripts js/devis-vermont.js, js/qualif-vermont.js et
 * js/sav-vermont.js fonctionnent tels quels.
 * ==========================================================================*/
@font-face { font-family: "Fraunces"; src: url("../fonts/Fraunces-var.woff2") format("woff2"); font-weight: 300 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("../fonts/InterTight-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --bg: #F5F1E8;
  --card: #FBF9F4;
  --ink: #16241D;
  --muted: rgba(22, 36, 29, 0.64);
  --copper: #A9502A;
  --copper2: #C4683F;
  --line: rgba(22, 36, 29, 0.16);
  --line-accent: rgba(169, 80, 42, 0.35);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }
::selection { background: var(--copper); color: #fff; }

/* overflow: clip (et non hidden) : un conteneur "hidden" reste defilable par le
   navigateur (focus d'un champ, scrollIntoView), ce qui decalait l'ecran sous
   l'en-tete fixe. "clip" coupe le motif decoratif sans creer de zone de defilement. */
#vm-app { position: relative; min-height: 100vh; overflow: hidden; overflow: clip; display: flex; flex-direction: column; }
.vm-mark {
  position: fixed; top: 30px; left: 40px; z-index: 5;
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: 0.22em; color: var(--ink); font-weight: 600; text-decoration: none;
}
.vm-mark span { color: var(--copper); letter-spacing: 0; transition: transform 0.3s ease; }
.vm-mark:hover span { transform: translateX(-4px); }
.vm-foot { position: fixed; bottom: 20px; right: 28px; font-size: 10px; letter-spacing: 0.1em; color: rgba(22, 36, 29, 0.42); text-transform: uppercase; z-index: 5; }
.vm-progress { position: fixed; top: 32px; right: 40px; display: flex; align-items: center; gap: 12px; z-index: 5; }
.vm-progress__label { font-size: 11px; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; white-space: nowrap; }
.vm-progress__track { width: 120px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.vm-progress__bar { height: 100%; width: 0%; background: var(--copper); transition: width 0.4s ease; }
.vm-motif { position: absolute; right: -80px; bottom: -80px; width: 560px; height: 560px; opacity: 0.12; pointer-events: none; }

.vm-screen { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; justify-content: center; padding: 100px 40px 64px; gap: 26px; position: relative; z-index: 1; animation: vmFade 0.45s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes vmFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.vm-kicker { font-size: 12px; letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; margin: 0 0 10px; }
.vm-kicker--intro { font-size: 13px; letter-spacing: 0.16em; color: var(--copper); }
.vm-h1 { margin: 0; font-family: var(--serif); font-weight: 350; font-size: 54px; line-height: 1.04; color: var(--ink); letter-spacing: -0.015em; }
.vm-h2 { margin: 0; font-family: var(--serif); font-weight: 380; font-size: 30px; line-height: 1.15; color: var(--ink); letter-spacing: -0.01em; }
.vm-sub { margin: 10px 0 0; font-size: 15px; line-height: 1.7; color: var(--muted); max-width: 480px; }

.vm-btn { border: none; background: var(--copper); color: #fff; font-family: var(--sans); font-weight: 500; font-size: 14px; padding: 14px 28px; border-radius: 999px; cursor: pointer; transition: background 0.18s ease, transform 0.18s ease, opacity 0.18s ease; }
.vm-btn:hover:not(:disabled) { background: var(--copper2); transform: translateY(-1px); }
.vm-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.vm-btn--ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.vm-btn--ghost:hover:not(:disabled) { border-color: var(--copper); background: rgba(169, 80, 42, 0.06); }
.vm-link { font-size: 13px; color: var(--muted); text-decoration: none; background: none; border: none; cursor: pointer; font-family: var(--sans); padding: 0; }
.vm-link:hover { color: var(--ink); }
.vm-link--accent { color: var(--copper); letter-spacing: 0.04em; }

.vm-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.vm-cards--2col { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 480px; }
.vm-card { display: flex; flex-direction: column; gap: 14px; border: 1px solid var(--line); background: var(--card); border-radius: 6px; padding: 18px 16px; cursor: pointer; color: var(--ink); font-family: inherit; text-align: left; transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease; }
.vm-card:hover { border-color: var(--copper); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(22, 36, 29, 0.07); }
.vm-card.is-on { border-color: var(--copper); background: rgba(169, 80, 42, 0.07); }
.vm-card__label { font-size: 14px; font-weight: 500; line-height: 1.3; }
.vm-card__icon { width: 24px; height: 24px; }

.vm-scale { display: flex; justify-content: space-between; position: relative; padding: 0 20px; }
.vm-scale::before { content: ""; position: absolute; left: 20px; right: 20px; top: 7px; height: 1px; background: var(--line-accent); }
.vm-scale__item { display: flex; flex-direction: column; align-items: center; gap: 16px; background: none; border: none; cursor: pointer; width: 33%; font-family: inherit; }
.vm-scale__dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--copper); background: var(--bg); box-sizing: border-box; }
.vm-scale__item.is-on .vm-scale__dot { background: var(--copper); }
.vm-scale__label { font-size: 14px; color: var(--muted); text-align: center; line-height: 1.4; }
.vm-scale__item.is-on .vm-scale__label { color: var(--ink); }

.vm-field { width: 100%; max-width: 420px; background: var(--card); border: 1px solid var(--line); color: var(--ink); font-family: var(--sans); font-size: 15px; padding: 14px 16px; border-radius: 6px; }
.vm-field:focus { outline: none; border-color: var(--copper); box-shadow: 0 0 0 3px rgba(169, 80, 42, 0.12); }
.vm-field::placeholder { color: rgba(22, 36, 29, 0.42); }
textarea.vm-field { max-width: 560px; min-height: 120px; resize: vertical; font-family: inherit; line-height: 1.5; }

.vm-drop { position: relative; display: block; width: 100%; max-width: 460px; border: 1px dashed var(--line-accent); border-radius: 6px; padding: 30px 20px; text-align: center; cursor: pointer; color: var(--muted); font-size: 14px; background: var(--card); transition: border-color 0.15s ease, color 0.15s ease; }
.vm-drop:hover { border-color: var(--copper); color: var(--ink); }
.vm-drop__filename { color: var(--copper); font-weight: 500; margin-top: 8px; }

.vm-recap__line { margin: 0 0 9px; font-size: 14.5px; color: var(--muted); }
.vm-recap__line b { color: var(--ink); font-weight: 500; }

.vm-lignes { display: flex; flex-direction: column; gap: 10px; max-width: 540px; }
.vm-ligne { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 9px; }
.vm-ligne b { color: var(--ink); font-weight: 500; }
.vm-ligne__montant { color: var(--ink); white-space: nowrap; }
.vm-total { display: flex; justify-content: space-between; align-items: baseline; max-width: 540px; margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--line-accent); }
.vm-total__label { font-size: 14px; color: var(--muted); }
.vm-total__ttc { font-family: var(--serif); font-size: 32px; color: var(--copper); }
.vm-cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

.vm-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.vm-nav--end { justify-content: flex-end; }
.vm-check { width: 42px; height: 42px; }

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .vm-mark { top: 22px; left: 20px; }
  .vm-progress { top: 52px; left: 20px; right: auto; }
  .vm-foot { display: none; }
  .vm-screen { padding: 104px 20px 48px; gap: 22px; }
  .vm-h1 { font-size: 40px; }
  .vm-h2 { font-size: 26px; }
  .vm-cards--2col { grid-template-columns: 1fr; }
  .vm-motif { width: 360px; height: 360px; right: -120px; bottom: -120px; }
}

@media (prefers-reduced-motion: reduce) {
  .vm-screen { animation: none; }
  * { transition-duration: 0.01ms !important; }
}
