/* ================================================================
   HEAR THE LIGHT — Page Devis (devis.html)
   L'idée forte de la page : les 3 démarches sont trois grandes lignes
   de typo. Au survol, le mot s'étire (axe wdth d'Anybody) et un trait
   de lumière passe dessous. Au clic, les lignes se replient et le
   formulaire s'ouvre, avec un rail à gauche : la démarche, puis les
   étapes dessinées comme une barre de lumière.
   Tout le reste est calme : champs soulignés, pilules, beaucoup d'air.
   Règles projet : animations toujours actives, mobile uniquement dans
   @media (max-width: 768px), couleurs uniquement via les jetons.
   ================================================================ */

.dv { position: relative; z-index: 2; --dv-err: #FF7A6E; }
html[data-palette="plein-jour"] .dv,
html[data-palette="polaroid"] .dv { --dv-err: #C42B23; }
.dv-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ── En-tête ──────────────────────────────────────────────────── */
.dv-head {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(48px, 8vw, 132px));
  padding-bottom: clamp(36px, 4.4vw, 68px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
  align-items: end;
  gap: 28px clamp(24px, 4vw, 72px);
  transition: padding-bottom .8s var(--ease-out);
}
.dv-head::before {
  content: '';
  position: absolute; z-index: -1; pointer-events: none;
  left: 0; top: 0; width: min(900px, 80vw); height: 120%;
  background: radial-gradient(60% 55% at 20% 70%, color-mix(in srgb, var(--light) 10%, transparent), transparent 70%);
}
.dv-title { --tune-to: 92; margin-left: -.03em; max-width: 11em; }
.dv-lead { color: var(--muted); font-size: clamp(17px, 1.35vw, 20px); max-width: 24em; padding-bottom: .45em; }
.dv-has-path .dv-head { padding-bottom: clamp(28px, 3vw, 44px); }

/* ── Les 3 démarches : grandes lignes typographiques ──────────── */
.dv-choose {
  display: grid; grid-template-rows: 1fr;
  opacity: 1; visibility: visible;
  transition: grid-template-rows .8s var(--ease-out), opacity .5s var(--ease-out), visibility 0s linear 0s;
}
.dv-choose__in { min-height: 0; overflow: hidden; padding-bottom: clamp(64px, 8vw, 130px); }
.dv-has-path .dv-choose {
  grid-template-rows: 0fr; opacity: 0; visibility: hidden; pointer-events: none;
  transition: grid-template-rows .8s var(--ease-out), opacity .35s var(--ease-out), visibility 0s linear .8s;
}
.dv-instant .dv-choose, .dv-instant .dv-head { transition: none; }

.dv-paths { border-top: 1px solid var(--line); }
.dv .path-card {
  position: relative; isolation: isolate;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px clamp(20px, 3vw, 48px);
  padding: clamp(26px, 3.2vw, 46px) 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.dv .path-card:focus-visible { outline: none; }
/* Halo doux derrière le mot survolé */
.dv .path-card::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(42% 130% at 26% 100%, color-mix(in srgb, var(--light) 11%, transparent), transparent 72%);
  opacity: 0; transition: opacity .6s var(--ease-out);
}
/* Le trait de lumière qui passe sous la ligne */
.dv .path-card::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; pointer-events: none;
  background: linear-gradient(90deg, var(--light), var(--light-2) 60%, transparent);
  box-shadow: 0 0 22px color-mix(in srgb, var(--light) 65%, transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .9s var(--ease-out);
}
.dv .path-card:hover::before, .dv .path-card:focus-visible::before { opacity: 1; }
.dv .path-card:hover::after, .dv .path-card:focus-visible::after { transform: scaleX(1); }

.path-num {
  align-self: start; padding-top: .7em;
  font-size: 14px; font-weight: 500; color: var(--muted);
  font-variant-numeric: tabular-nums; letter-spacing: .02em;
}
.path-text { display: block; min-width: 0; }
.path-title {
  display: block;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(38px, 4.6vw, 80px); line-height: .94; letter-spacing: -.01em;
  font-variation-settings: 'wdth' 64;
  color: var(--fg);
  transition: font-variation-settings .9s var(--ease-out), color .45s var(--ease-out);
}
.dv .path-card:hover .path-title, .dv .path-card:focus-visible .path-title { font-variation-settings: 'wdth' 94; }
.dv-paths:hover .path-card:not(:hover) .path-title { color: var(--muted); }
.path-desc { display: block; margin-top: 14px; max-width: 48ch; color: var(--muted); font-size: 16px; line-height: 1.5; }
.path-go {
  justify-self: end;
  display: inline-flex; align-items: center; height: 44px; padding: 0 20px;
  border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: background-color .35s, color .35s, box-shadow .35s;
}
.dv .path-card:hover .path-go, .dv .path-card:focus-visible .path-go { background: var(--light); color: var(--on-light); box-shadow: none; }
.dv .path-card.dimmed .path-title { color: var(--muted); }

.choice-hint {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 26px 0 0; font-size: 15px; color: var(--muted);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.choice-hint.hidden { opacity: 0; transform: translateY(6px); }
.choice-hint .ch-dot {
  width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: var(--light); box-shadow: 0 0 12px var(--light);
  animation: dv-blink 1.6s var(--ease-in-out) infinite;
}
@keyframes dv-blink { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

/* ── Formulaire : rail + étape ────────────────────────────────── */
.form-area { display: none; padding-bottom: clamp(90px, 10vw, 170px); }
.dv-flow {
  display: grid;
  grid-template-columns: minmax(200px, 3fr) minmax(0, 8fr);
  gap: 40px clamp(36px, 6vw, 120px);
  align-items: start;
}
.dv-rail { position: sticky; top: calc(var(--nav-h) + 28px); }
.dv-main { min-width: 0; max-width: 760px; }
.form-area.is-done .dv-flow { grid-template-columns: minmax(0, 1fr); }
.form-area.is-done .dv-rail { display: none; }

/* Sélecteur de démarche : trois mots, le trait de lumière glisse */
.path-switch {
  position: relative;
  display: grid; grid-template-rows: repeat(3, 48px);
  padding-left: 18px;
  border-left: 1px solid var(--line);
}
.ps-thumb {
  position: absolute; left: -1px; top: 0; width: 2px; height: 48px; border-radius: 2px;
  background: linear-gradient(var(--light), var(--light-2));
  box-shadow: 0 0 16px color-mix(in srgb, var(--light) 70%, transparent);
  transition: transform .55s var(--ease-out);
}
.path-switch[data-active="dossier"] .ps-thumb { transform: translateY(100%); }
.path-switch[data-active="formule"] .ps-thumb { transform: translateY(200%); }
.ps-opt {
  display: flex; align-items: center; justify-content: flex-start;
  margin: 0; padding: 0; border: 0; background: none; cursor: pointer; text-align: left;
  font-family: var(--font-display); font-weight: 800; font-size: 20px; line-height: 1;
  font-variation-settings: 'wdth' 72; color: var(--muted);
  transition: color .35s var(--ease-out), font-variation-settings .7s var(--ease-out);
}
.ps-opt:hover { color: var(--fg); }
.ps-opt.active { color: var(--fg); font-variation-settings: 'wdth' 100; }

/* Étapes : une barre de lumière qui se remplit */
.form-progress { display: flex; flex-direction: column; list-style: none; margin: 44px 0 0; padding: 0; }
.fp-step { display: flex; align-items: center; gap: 14px; margin: 0; }
.fp-dot {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 11px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums;
  transition: background-color .45s var(--ease-out), color .45s, box-shadow .45s;
}
.fp-label { font-size: 14px; color: var(--muted); transition: color .35s; }
.fp-step.active .fp-dot { color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--light), 0 0 20px color-mix(in srgb, var(--light) 45%, transparent); }
.fp-step.active .fp-label { color: var(--fg); font-weight: 600; }
.fp-step.done .fp-dot { background: var(--light); color: var(--on-light); box-shadow: 0 0 14px color-mix(in srgb, var(--light) 40%, transparent); }
.fp-connector {
  position: relative; overflow: hidden;
  width: 2px; height: 30px; margin: 4px 0 4px 14px; border-radius: 2px;
  background: var(--line); list-style: none;
}
.fp-connector::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(var(--light), var(--light-2));
  transform: scaleY(0); transform-origin: top;
  transition: transform .7s var(--ease-out);
}
.fp-connector.filled::after { transform: scaleY(1); }

/* ── Contenu d'une étape ──────────────────────────────────────── */
.form-step { position: relative; }
.step-title {
  margin: 0 0 14px;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(34px, 3.8vw, 58px); line-height: .96; letter-spacing: -.01em;
  font-variation-settings: 'wdth' 86;
  text-wrap: balance;
}
.step-sub { margin: 0 0 clamp(32px, 4vw, 52px); color: var(--muted); font-size: 17px; max-width: 46ch; }
.dv-label { margin: 0 0 14px; font-size: 15px; font-weight: 500; color: var(--fg); }
.dv-label__opt { color: var(--muted); font-weight: 400; }

/* Services : pilules typographiques à cocher */
.service-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.dv .service-card {
  position: relative;
  display: inline-flex; align-items: center; gap: 0;
  min-height: 58px; padding: 0 26px;
  border-radius: var(--r-pill);
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: pointer; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
  transition: box-shadow .3s var(--ease-out), background-color .3s var(--ease-out), gap .4s var(--ease-out);
}
.dv .service-card:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 45%, transparent); }
.dv .service-card:focus-visible { outline: 2px solid var(--light); outline-offset: 3px; }
.sc-name { font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1; font-variation-settings: 'wdth' 88; }
.sc-check {
  display: inline-grid; place-items: center; flex: none;
  width: 0; height: 22px; overflow: hidden;
  transition: width .4s var(--ease-out);
}
.sc-check svg { width: 16px; height: 16px; fill: none; stroke: var(--light); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dv .service-grid .service-card.selected { gap: 8px; background: color-mix(in srgb, var(--light) 15%, transparent); box-shadow: inset 0 0 0 1.5px var(--light); }
.dv .service-grid .service-card.selected .sc-check { width: 18px; }

/* Formules : une liste, pas une grille de cartes */
.fo-grid { display: flex; flex-direction: column; border-top: 1px solid var(--line); margin-bottom: 28px; }
.dv .fo-grid .service-card {
  display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 18px;
  min-height: 0; padding: 22px 4px;
  border-radius: 0; box-shadow: none; border-bottom: 1px solid var(--line);
  background: none;
}
.dv .fo-grid .service-card::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--light), var(--light-2) 60%, transparent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--light) 60%, transparent);
  transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease-out);
}
.dv .fo-grid .service-card:hover { box-shadow: none; }
.dv .fo-grid .service-card.selected::after { transform: scaleX(1); }
.dv .fo-grid .sc-check {
  width: 22px; height: 22px; border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--line);
  transition: background-color .35s, box-shadow .35s;
}
.dv .fo-grid .sc-check svg { stroke: var(--on-light); opacity: 0; transition: opacity .25s; }
.dv .fo-grid .service-card.selected .sc-check { background: var(--light); box-shadow: none; }
.dv .fo-grid .service-card.selected .sc-check svg { opacity: 1; }
.dv .fo-grid .sc-name { font-size: clamp(26px, 2.5vw, 38px); font-variation-settings: 'wdth' 76; transition: font-variation-settings .8s var(--ease-out); }
.dv .fo-grid .service-card:hover .sc-name, .dv .fo-grid .service-card.selected .sc-name { font-variation-settings: 'wdth' 98; }
.fo-sub { font-size: 15px; color: var(--muted); text-align: right; }

.fo-panel { display: none; margin: 8px 0 32px; }
.fo-panel-title { margin: 0 0 6px; font-family: var(--font-display); font-weight: 800; font-size: 24px; font-variation-settings: 'wdth' 90; line-height: 1.1; }
.fo-panel-sub { margin: 0 0 18px; font-size: 15px; color: var(--muted); }
.fo-opt {
  display: flex; align-items: center; gap: 14px;
  min-height: 56px; padding: 8px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer; transition: color .25s;
}
.fo-opt:first-of-type { border-top: 1px solid var(--line); }
.fo-opt input[type=checkbox] { width: 20px; height: 20px; flex: none; margin: 0; accent-color: var(--light); cursor: pointer; }
.fo-opt-txt { flex: 1; font-size: 16px; line-height: 1.4; color: var(--muted); transition: color .25s; }
.fo-opt:hover .fo-opt-txt, .fo-opt.on .fo-opt-txt { color: var(--fg); }
.dv .fo-qty {
  width: 76px; height: 40px; flex: none; padding: 0 8px;
  border: 0; border-radius: var(--r-pill); background: transparent;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--fg); font: inherit; font-size: 15px; text-align: center; outline: none;
  transition: box-shadow .25s, opacity .25s;
}
.dv .fo-qty:focus { box-shadow: inset 0 0 0 1.5px var(--light); }
.dv .fo-qty:disabled { opacity: .35; }

/* Pastilles (profil, plateformes, objectifs) et budget */
.chips, .budget-opts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.dv .pick-chip, .budget-opt span {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 18px;
  border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 15px; font-weight: 500; color: var(--muted);
  cursor: pointer; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
  transition: box-shadow .25s, background-color .25s, color .25s;
}
.dv .pick-chip:hover, .budget-opt span:hover { color: var(--fg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 45%, transparent); }
.dv .pick-chip.selected, .budget-opt input:checked + span {
  color: var(--fg); background: color-mix(in srgb, var(--light) 15%, transparent);
  box-shadow: inset 0 0 0 1.5px var(--light);
}
.dv .pick-chip:focus-visible { outline: 2px solid var(--light); outline-offset: 3px; }
.budget-opt { position: relative; display: inline-flex; }
.budget-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.budget-opt input:focus-visible + span { outline: 2px solid var(--light); outline-offset: 3px; }

/* Champs : soulignés, l'étiquette flotte, un trait de lumière au focus */
.form-field { position: relative; margin-bottom: 30px; }
.dv .form-input, .dv .form-textarea, .dv .form-select {
  display: block; width: 100%; margin: 0;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  background: transparent; color: var(--fg);
  font-family: var(--font-body); font-size: 18px; line-height: 1.4;
  outline: none; -webkit-appearance: none; appearance: none;
  transition: border-color .3s;
}
.dv .form-input { height: 64px; padding: 26px 0 8px; }
.dv .form-textarea { min-height: 150px; padding: 32px 0 12px; resize: vertical; line-height: 1.55; }
/* Le trait de lumière qui se dessine sous le champ actif */
.dv .form-input, .dv .form-textarea {
  background-image: linear-gradient(90deg, var(--light), var(--light-2));
  background-repeat: no-repeat; background-position: left bottom; background-size: 0% 2px;
  transition: border-color .3s, background-size .6s var(--ease-out);
}
.dv .form-input:focus, .dv .form-textarea:focus { background-size: 100% 2px; }
.dv .form-input:hover, .dv .form-textarea:hover, .dv .form-select:hover { border-bottom-color: color-mix(in srgb, var(--fg) 40%, transparent); }
.dv .form-input::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .6; }
.form-label {
  position: absolute; left: 0; top: 22px; max-width: 100%;
  color: var(--muted); font-size: 18px; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  pointer-events: none; transform-origin: left top;
  transition: transform .35s var(--ease-out), color .3s;
}
.form-input:focus ~ .form-label, .form-input:not(:placeholder-shown) ~ .form-label,
.form-textarea:focus ~ .form-label, .form-textarea:not(:placeholder-shown) ~ .form-label {
  transform: translateY(-17px) scale(.74);
  max-width: 135%;
  color: var(--fg);
}
.form-input:focus ~ .form-label, .form-textarea:focus ~ .form-label { color: var(--light); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.field-error { display: none; margin-top: 8px; font-size: 14px; color: var(--dv-err); }
.form-field.has-error .form-input, .form-field.has-error .form-textarea { border-bottom-color: var(--dv-err); }
.form-field.has-error .field-error { display: block; }

.dv .form-select {
  height: 60px; padding: 0 36px 0 0; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 14px) 50%, calc(100% - 8px) 50%;
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
}
.dv .form-select:invalid, .dv .form-select:has(option[value=""]:checked) { color: var(--muted); }
.dv .form-select:focus { border-bottom-color: var(--light); }
.dv .form-select option { background: var(--bg-2); color: var(--fg); }

/* Navigation de l'étape */
.form-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 48px; }
.dv .btn-send.loading { opacity: .7; cursor: progress; }

/* Récapitulatif */
.summary-card { border-top: 1px solid var(--line); margin-bottom: 28px; }
.s-row { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 8px 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.s-key { font-size: 14px; color: var(--muted); padding-top: 2px; }
.s-val { font-size: 16px; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.s-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.s-tag { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; }
.send-note { margin: 0 0 28px; max-width: 60ch; font-size: 14px; line-height: 1.55; color: var(--muted); }
.send-note a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--fg) 35%, transparent); }
.send-note a:hover { text-decoration-color: var(--light); }

/* Fichiers joints (dossier) */
.file-drop {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 26px 24px; margin-bottom: 14px;
  border: 1px dashed color-mix(in srgb, var(--fg) 24%, transparent); border-radius: var(--r-media);
  color: var(--muted); cursor: pointer;
  transition: border-color .3s, background-color .3s, color .3s;
}
.file-drop:hover, .file-drop.drag { border-color: var(--light); background: color-mix(in srgb, var(--light) 7%, transparent); color: var(--fg); }
.file-drop-ic { width: 24px; height: 24px; fill: none; stroke: var(--light); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 6px; }
.file-drop-txt { font-size: 16px; font-weight: 500; color: var(--fg); }
.file-drop-txt strong { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--light); }
.file-drop-hint { font-size: 14px; }
.file-list { display: flex; flex-direction: column; margin-bottom: 18px; }
.file-item { display: flex; align-items: center; gap: 14px; min-height: 52px; border-bottom: 1px solid var(--line); }
.file-item-ic { flex: none; min-width: 40px; font-size: 11px; font-weight: 600; letter-spacing: .04em; color: var(--light); font-variant-numeric: tabular-nums; }
.file-item-name { flex: 1; min-width: 0; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-item-size { flex: none; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.file-item-rm {
  flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; padding: 0;
  display: grid; place-items: center; background: transparent; color: var(--muted); cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--line); transition: color .25s, box-shadow .25s;
}
.file-item-rm svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.file-item-rm:hover { color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg); }

/* Envoyé */
#success-state { display: none; padding: clamp(8px, 2vw, 24px) 0; }
.success-beam {
  display: block; width: min(520px, 100%); height: 2px; border-radius: 2px; margin-bottom: clamp(28px, 4vw, 48px);
  background: linear-gradient(90deg, var(--light), var(--light-2) 60%, transparent);
  box-shadow: 0 0 24px color-mix(in srgb, var(--light) 70%, transparent);
  transform-origin: left; animation: dv-beam 1.2s var(--ease-out) .1s both;
}
@keyframes dv-beam { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.success-title {
  margin: 0 0 22px;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(60px, 10vw, 168px); line-height: .88; letter-spacing: -.01em;
  animation: dv-tune 1.5s var(--ease-out) both;
}
@keyframes dv-tune { from { font-variation-settings: 'wdth' 50; opacity: 0; } to { font-variation-settings: 'wdth' 92; opacity: 1; } }
.success-desc { margin: 0 0 36px; max-width: 34em; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.5; color: var(--muted); }
.success-links { display: flex; flex-wrap: wrap; gap: 10px; }

/* Message bref en bas d'écran */
#dv-toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 960;
  max-width: calc(100vw - 32px); padding: 13px 22px;
  border-radius: var(--r-pill); background: var(--fg); color: var(--bg);
  font-size: 14px; font-weight: 600; line-height: 1.35; text-align: center;
  pointer-events: none; opacity: 0;
  transform: translate(-50%, 16px);
  transition: opacity .35s var(--ease-out), transform .45s var(--ease-out);
}
#dv-toast:empty { padding: 0; }
#dv-toast.show { opacity: 1; transform: translate(-50%, 0); }
/* PC : posé au-dessus de la barre Continuer de l'étape (top/left calculés par le script) */
@media (min-width: 769px) {
  #dv-toast.is-anchored { left: auto; bottom: auto; max-width: min(560px, calc(100vw - 48px)); transform: translateY(calc(-100% + 4px)); }
  #dv-toast.is-anchored.show { transform: translateY(calc(-100% - 10px)); }
}

/* ================================================================
   MOBILE (≤ 768px) — règles mobiles uniquement ici
   ================================================================ */
@media (max-width: 768px) {
  .dv-head { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-top: calc(var(--nav-h) + 44px); padding-bottom: 32px; }
  .dv-title { font-size: clamp(44px, 12vw, 64px); max-width: none; }
  .dv-lead { font-size: 17px; padding-bottom: 0; }
  .dv-has-path .dv-head { padding-bottom: 24px; }

  .dv-choose__in { padding-bottom: 64px; }
  .dv .path-card { grid-template-columns: 32px minmax(0, 1fr); gap: 0 12px; padding: 26px 0 24px; }
  .path-num { padding-top: .55em; font-size: 13px; }
  .path-title { font-size: clamp(32px, 9.4vw, 44px); font-variation-settings: 'wdth' 74; }
  .dv .path-card:hover .path-title, .dv .path-card:focus-visible .path-title { font-variation-settings: 'wdth' 74; }
  .dv-paths:hover .path-card:not(:hover) .path-title { color: var(--fg); }
  .dv .path-card.dimmed .path-title { color: var(--fg); }
  .path-desc { font-size: 15px; margin-top: 10px; }
  .path-go { grid-column: 2; justify-self: start; margin-top: 16px; }

  .dv-flow { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .dv-rail { position: relative; top: auto; margin-bottom: 40px; }

  .path-switch { grid-template-rows: none; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-left: 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .ps-thumb { left: 0; top: auto; bottom: -1px; width: calc(100% / 3); height: 2px; }
  .path-switch[data-active="dossier"] .ps-thumb { transform: translateX(100%); }
  .path-switch[data-active="formule"] .ps-thumb { transform: translateX(200%); }
  .ps-opt { justify-content: center; min-height: 52px; padding: 6px 4px; text-align: center; font-size: 15px; line-height: 1.1; }

  .form-progress { flex-direction: row; align-items: flex-start; margin-top: 28px; }
  .fp-step { flex-direction: column; gap: 8px; flex: none; }
  .fp-dot { width: 28px; height: 28px; }
  .fp-label { font-size: 12px; white-space: nowrap; }
  .fp-connector { flex: 1; width: auto; height: 2px; margin: 13px 6px 0; }
  .fp-connector::after { transform: scaleX(0); transform-origin: left; }
  .fp-connector.filled::after { transform: scaleX(1); }

  .step-title { font-size: clamp(30px, 8.6vw, 40px); }
  .step-sub { font-size: 16px; margin-bottom: 32px; }

  .dv .service-card { min-height: 50px; padding: 0 20px; }
  .sc-name { font-size: 19px; }
  .dv .fo-grid .service-card { grid-template-columns: 24px minmax(0, 1fr); gap: 4px 14px; padding: 18px 2px; }
  .dv .fo-grid .sc-name { font-size: 28px; }
  .fo-sub { grid-column: 2; text-align: left; font-size: 14px; }
  .fo-opt { gap: 12px; }
  .fo-opt-txt { font-size: 15px; }
  .dv .fo-qty { width: 64px; }

  .form-row { grid-template-columns: minmax(0, 1fr); }
  .dv .form-input, .dv .form-textarea, .dv .form-select, .form-label { font-size: 17px; }

  .form-nav { flex-direction: column-reverse; align-items: stretch; margin-top: 36px; }
  .form-nav > div:empty { display: none; }
  .form-nav .htl-btn, .dv .btn-send { width: 100%; }

  .s-row { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 16px 0; }
  .file-drop { padding: 22px 18px; }
  .file-item { gap: 10px; }

  .success-title { font-size: clamp(54px, 16vw, 80px); }
  .success-links { flex-direction: column; align-items: stretch; }
  .success-links .htl-btn { width: 100%; }

  #dv-toast { bottom: 76px; font-size: 13px; }

  /* ── Correcteur mobile M2 ─────────────────────────────────────── */
  /* Parcours choisi : titre compact, les choix arrivent tout de suite sous la nav */
  .dv-has-path .dv-head { padding-top: calc(var(--nav-h) + 20px); padding-bottom: 12px; }
  .dv-has-path .dv-lead { display: none; }
  .dv-has-path .dv-title { font-size: clamp(32px, 9vw, 44px); }

  /* Barre d'action collante en bas (Retour à gauche, Continuer / Envoyer sous le pouce à droite) */
  .dv .form-nav {
    position: sticky; bottom: 0; z-index: 5;
    flex-direction: row; align-items: center; gap: 10px;
    margin: 28px calc(-1 * var(--gutter)) 0;
    padding: 14px var(--gutter) calc(14px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(to top, var(--bg) 72%, transparent);
  }
  .dv .form-nav .btn-next, .dv .form-nav .btn-send { flex: 1 1 auto; width: auto; height: 52px; }
  .dv .form-nav .btn-back-step { flex: 0 0 auto; width: auto; padding: 0 18px; }
  .form-area.path-devis #step4-nav .btn-send[data-kind="dossier"],
  .form-area.path-dossier #step4-nav .btn-send[data-kind="devis"] { display: none; }
  /* Le dock (palette, cookies) laisse la place à la barre d'action pendant le formulaire */
  body.dv-has-path .htl-dock, body.dv-has-path #km-cookie-reopen { visibility: hidden; opacity: 0; pointer-events: none; }

  /* Champs « nombre de vidéos » : 16 px (pas de zoom iOS), 44 px de haut */
  .dv .fo-qty { font-size: 16px; height: 44px; width: 72px; }

  /* Message d'erreur : bandeau lisible, posé juste au-dessus de la barre d'action */
  #dv-toast {
    left: 16px; right: 16px; max-width: none;
    bottom: calc(96px + env(safe-area-inset-bottom, 0px));
    padding: 14px 18px; border-radius: 16px; font-size: 15px;
    transform: translateY(16px);
  }
  #dv-toast.show { transform: none; }

  /* Fichiers : texte tactile (pas de glisser-déposer au doigt) */
  .file-drop-txt { display: none; }
  .file-drop-txt--touch { display: inline; font-size: 16px; font-weight: 600; color: var(--fg); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--light); }
  .file-drop { min-height: 120px; justify-content: center; }

  /* Récapitulatif : « Modifier » sur chaque rubrique */
  .s-row { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; }
  .s-row > :not(.s-key):not(.s-edit) { grid-column: 1 / -1; }
  .s-edit {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; margin: -10px -12px -6px 0;
    border: 0; background: none; font: inherit; font-size: 15px; font-weight: 600; color: var(--light); cursor: pointer;
  }
}
/* Éléments propres au mobile : jamais affichés au-dessus de 768 px */
@media (min-width: 769px) {
  .file-drop-txt--touch, .s-edit { display: none; }
}
