/* Maquette ZELY · Habitat Piscine Services : démonstration du devis digital (relire et signer en ligne). */
body.p-devis { background: var(--fond); color: var(--ink); }
.p-devis svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dv-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px var(--pad); background: #fff; border-bottom: 1px solid var(--line); }
.dv-logo { display: inline-flex; align-items: center; min-height: 48px; }
.dv-logo img { display: block; height: 44px; width: auto; }
.dv-secure { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--grey); }
.dv-secure svg { color: #1F9D55; }
.dv-page { max-width: 820px; margin: 0 auto; padding: 32px 20px 70px; }
.dv-demo { display: inline-block; margin-bottom: 18px; padding: 6px 12px; border-radius: 999px; background: #FFF4D6; color: #7A5A00; font-size: 13.5px; font-weight: 600; }
.dv-kicker { font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }
.dv-title { margin-top: 6px; font-size: clamp(30px, 5vw, 44px); line-height: 1.08; color: var(--navy); }
.dv-client { margin-top: 8px; color: var(--grey); font-size: 17px; }
.dv-sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-top: 18px; padding: 18px 20px; border-radius: var(--r-m); background: #fff; border: 1px solid var(--line); }
.dv-amount { font-family: var(--display); font-size: 32px; color: var(--navy); letter-spacing: -.02em; }
.dv-amount small { font-size: 16px; color: var(--grey); }
.dv-sum span { color: var(--grey); font-size: 15px; }
.dv-sum span::before { content: '·'; margin-right: 10px; color: var(--line); }
.dv-doc { margin-top: 26px; }
.dv-sheet { position: relative; overflow: hidden; padding: 34px 36px 30px; background: #fff; border-radius: 6px; box-shadow: 0 30px 70px -40px rgba(var(--ink-rgb), .55), 0 0 0 1px var(--line); font-size: 14px; color: #2B3446; }
.dv-sh-top { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.dv-sh-top img { height: 40px; width: auto; }
.dv-sh-top p { margin-top: 10px; line-height: 1.55; }
.dv-sh-ref { text-align: right; }
.dv-sh-titre { margin: 0 !important; font-family: var(--display); font-size: 26px; font-weight: 800; color: var(--navy); }
.dv-sh-pour { display: inline-block; text-align: left; margin-top: 14px !important; padding: 10px 14px; border-radius: 8px; background: var(--fond); }
.dv-sh-pour span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--grey); }
.dv-sh-objet { margin-top: 22px; }
.dv-lignes { width: 100%; margin-top: 16px; border-collapse: collapse; }
.dv-lignes th { padding: 10px 8px; background: var(--navy); color: #fff; font-size: 12.5px; font-weight: 600; text-align: left; }
.dv-lignes th:nth-child(n+2), .dv-lignes td:nth-child(n+2) { text-align: right; white-space: nowrap; }
.dv-lignes td { padding: 11px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.dv-totaux { width: min(300px, 100%); margin: 16px 0 0 auto; }
.dv-totaux p { display: flex; justify-content: space-between; padding: 6px 8px; }
.dv-ttc { margin-top: 4px; border-radius: 6px; background: var(--sky); color: var(--navy); font-size: 16px; }
.dv-sh-bas { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-top: 26px; }
.dv-cond { max-width: 320px; font-size: 12.5px; color: var(--grey); }
.dv-bpa span { display: block; font-size: 12px; font-weight: 600; color: var(--grey); text-transform: uppercase; letter-spacing: .06em; }
.dv-bpa-zone { display: grid; place-items: center; width: 240px; height: 96px; margin-top: 6px; border: 1.5px dashed var(--line); border-radius: 8px; }
.dv-bpa-zone em { font-size: 13px; color: #5B6573; }
.dv-bpa-zone img { max-width: 220px; max-height: 84px; }
.dv-tampon { position: absolute; right: 34px; top: 46%; padding: 6px 18px; border: 3px solid #1F9D55; border-radius: 8px; color: #1F9D55; font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: .12em; text-transform: uppercase; transform: rotate(-12deg) scale(1.6); opacity: 0; transition: opacity .3s, transform .5s cubic-bezier(.2, 1.4, .4, 1); pointer-events: none; }
.dv-sheet.signe .dv-tampon { opacity: .9; transform: rotate(-12deg) scale(1); }
.dv-dl { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 0; border: 0; background: none; font-weight: 600; color: var(--navy); border-bottom: 2px solid var(--cyan); cursor: pointer; }
.dv-sign, .dv-done { margin-top: 34px; padding: 28px; border-radius: var(--r-l); background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 70px -50px rgba(var(--ink-rgb), .6); }
.dv-sign h2, .dv-done h2 { font-size: 24px; color: var(--navy); }
.dv-field { display: grid; gap: 6px; margin-top: 18px; font-weight: 600; font-size: 15px; color: var(--navy); }
.dv-field input { min-height: 50px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; font-weight: 500; color: var(--ink); background: var(--fond); }
.dv-field input:focus-visible, .dv-pad:focus-visible { outline: 3px solid rgba(var(--cyan-rgb), .35); border-color: var(--cyan); }
.dv-pad-head { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; font-weight: 600; font-size: 15px; color: var(--navy); }
.dv-link { min-height: 44px; padding: 0 4px; border: 0; background: none; font-weight: 600; color: var(--cyan-d); text-decoration: underline; cursor: pointer; }
.dv-pad { display: block; width: 100%; height: 180px; margin-top: 6px; border: 1.5px dashed #B9C4D3; border-radius: 12px; background: #FBFCFE; touch-action: none; cursor: crosshair; }
.dv-pad-aide { margin-top: 6px; font-size: 13.5px; color: var(--grey); }
.dv-check { display: flex; align-items: flex-start; gap: 12px; margin-top: 18px; font-size: 15.5px; cursor: pointer; }
.dv-check input { width: 22px; height: 22px; margin-top: 1px; flex: none; accent-color: var(--navy); }
.dv-err { margin-top: 14px; padding: 10px 14px; border-radius: 10px; background: #FDECEC; color: #A32020; font-weight: 600; font-size: 15px; }
.dv-submit { width: 100%; margin-top: 20px; justify-content: center; }
.dv-submit svg, .dv-done .btn svg { width: 18px; height: 18px; }
.dv-done { text-align: center; }
.dv-done-ico { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 12px; border-radius: 50%; background: #E3F5EA; color: #1F9D55; }
.dv-done-ico svg { width: 32px; height: 32px; stroke-width: 2.6; }
.dv-done p { margin-top: 10px; color: var(--grey); }
.dv-done .btn { margin-top: 20px; }
.dv-demo-note { font-size: 13.5px; }
.dv-foot { padding: 26px 20px 40px; text-align: center; font-size: 13.5px; color: var(--grey); }
@media (max-width: 700px) {
  .dv-top { padding: 10px 16px; } .dv-logo img { height: 38px; } .dv-secure { font-size: 12.5px; }
  .dv-page { padding: 22px 14px 56px; }
  .dv-sheet { padding: 20px 16px; font-size: 13px; }
  .dv-sh-ref { text-align: left; }
  .dv-lignes th:nth-child(2), .dv-lignes td:nth-child(2) { display: none; }
  .dv-bpa, .dv-bpa-zone { width: 100%; }
  .dv-tampon { right: 16px; font-size: 20px; }
  .dv-sign, .dv-done { padding: 20px 16px; }
  .dv-sum { flex-direction: column; align-items: flex-start; gap: 4px; }
  .dv-sum span::before { content: none; }
}
@media print {
  .dv-top, .dv-demo, .dv-head, .dv-dl, .dv-sign, .dv-done, .dv-foot { display: none !important; }
  .dv-page { padding: 0; max-width: none; } .dv-sheet { box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) { .dv-tampon { transition: none; } }
