/* Demande de site de commande (pro.htm, pro2.htm, pro3.htm) : body.pro-form. En-tête et pied : homepage.css. */
body.pro-form {
  --pf-ink: #262826;
  --pf-muted: #6a6d65;
  --pf-accent: #d72e43;
  --pf-accent-dark: #b4233a;
  --pf-line: #e3dfd5;
  background: #f7f6f2;
}
body.pro-form .pro-form-page { width: 100%; max-width: 1080px; margin: 0 auto; padding: 40px 32px 72px; color: var(--pf-ink); text-align: left; }
body.pro-form .pro-form-page h1, body.pro-form .pro-form-page h2 { margin: 0; padding: 0; color: var(--pf-ink); text-align: left; border: 0; text-transform: none; height: auto; line-height: 1.2; }
body.pro-form .pro-form-page h1::before, body.pro-form .pro-form-page h1::after, body.pro-form .pro-form-page h2::before, body.pro-form .pro-form-page h2::after { display: none; }
body.pro-form .pro-form-page p { margin: 0; }
body.pro-form .pro-form-page :focus-visible { outline: 3px solid var(--pf-accent); outline-offset: 3px; }

/* Étapes. */
body.pro-form .pro-form-steps { display: flex; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; counter-reset: none; }
body.pro-form .pro-form-steps li { flex: 1 1 0; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 12px 14px; color: var(--pf-muted); background: #fff; border: 1px solid var(--pf-line); border-radius: 14px; font-size: 14px; font-weight: 650; }
body.pro-form .pro-form-steps li > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.pro-form .pro-form-step-dot { display: grid; place-items: center; flex: 0 0 28px; height: 28px; color: var(--pf-muted); background: #f1efe9; border-radius: 50%; font-size: 13px; font-weight: 800; }
body.pro-form .pro-form-steps li.is-current { color: var(--pf-ink); border-color: #f0c4cb; box-shadow: 0 6px 18px #d72e4314; }
body.pro-form .pro-form-steps li.is-current .pro-form-step-dot { color: #fff; background: var(--pf-accent); }
body.pro-form .pro-form-steps li.is-done .pro-form-step-dot { color: #2f6b2a; background: #e6f2e2; }

/* Carte du formulaire et encart. */
body.pro-form .pro-form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 24px; }
body.pro-form .pro-form-layout.is-done { grid-template-columns: minmax(0, 640px); justify-content: center; }
body.pro-form .pro-form-card { padding: 36px; background: #fff; border: 1px solid var(--pf-line); border-radius: 24px; box-shadow: 0 10px 30px #2b201409; }
body.pro-form .pro-form-kicker { margin-bottom: 10px !important; color: var(--pf-accent); font-size: 13px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
body.pro-form .pro-form-card h1 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -.035em; font-weight: 820; }
body.pro-form .pro-form-intro { margin: 12px 0 26px !important; color: var(--pf-muted); font-size: 16px; line-height: 1.6; }
body.pro-form .pro-form-layout.is-done .pro-form-card { text-align: center; }
body.pro-form .pro-form-layout.is-done .pro-form-card h1, body.pro-form .pro-form-layout.is-done .pro-form-card p { text-align: center; }

body.pro-form .pro-form-form { position: relative; display: grid; gap: 18px; margin: 0; padding: 0; background: none; border: 0; }
body.pro-form .pro-form-group { display: grid; gap: 16px; min-width: 0; margin: 0; padding: 0 0 4px; border: 0; }
body.pro-form .pro-form-group + .pro-form-group { padding-top: 20px; border-top: 1px solid #eeeae2; }
body.pro-form .pro-form-group legend { float: left; width: 100%; margin: 0 0 14px; padding: 0; color: var(--pf-ink); font-size: 18px; font-weight: 750; }
body.pro-form .pro-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
body.pro-form .pro-form-row-civil { grid-template-columns: minmax(120px, .5fr) minmax(0, 1fr); }
body.pro-form .pro-form-field { position: relative; float: none; width: auto; min-width: 0; margin: 0; padding: 0; }
body.pro-form .pro-form-field label { display: block; float: none; width: auto; margin: 0 0 6px; padding: 0; color: #4a443b; font-size: 14px; font-weight: 650; line-height: 1.4; text-align: left; }
body.pro-form .pro-form-required { color: var(--pf-accent); }
body.pro-form .pro-form-input, body.pro-form .pro-form-form input[type="text"], body.pro-form .pro-form-form input[type="tel"], body.pro-form .pro-form-form input[type="email"], body.pro-form .pro-form-form select { display: block; width: 100%; height: 50px; margin: 0; padding: 11px 14px; color: var(--pf-ink); background: #fff; border: 1px solid #d6d0c4; border-radius: 12px; box-shadow: none; font-size: 16px; line-height: 1.4; }
body.pro-form .pro-form-form select { appearance: auto; }
body.pro-form .pro-form-input:focus, body.pro-form .pro-form-form select:focus { outline: none; border-color: var(--pf-accent); box-shadow: 0 0 0 3px #d72e4326; }
body.pro-form .pro-form-input.error { border-color: #c0392b; background: #fffafa; }
body.pro-form .pro-form-field .error-msg { margin-top: 6px; color: #b3261e; font-size: 13px; line-height: 1.4; }
body.pro-form .pro-form-hint { margin-top: 6px !important; color: var(--pf-muted); font-size: 13px; line-height: 1.4; }
body.pro-form .pro-form-note { color: var(--pf-muted); font-size: 13px; }
body.pro-form .pro-form-note span { color: var(--pf-accent); }
body.pro-form .pro-form-button { display: inline-flex; align-items: center; justify-content: center; justify-self: start; min-height: 52px; padding: 14px 28px; color: #fff; background: var(--pf-accent); border: 1px solid var(--pf-accent); border-radius: 13px; font-size: 16px; font-weight: 750; line-height: 1.2; text-decoration: none; cursor: pointer; box-shadow: 0 10px 24px #d72e4326; }
body.pro-form .pro-form-button:hover { color: #fff; background: var(--pf-accent-dark); border-color: var(--pf-accent-dark); }
body.pro-form .pro-form-layout.is-done .pro-form-button { justify-self: center; }
body.pro-form .pro-form-form .loading { position: absolute; inset: 0; z-index: 2; background: #ffffffb3; border-radius: 12px; }
body.pro-form .ui-autocomplete { max-width: 560px; border-radius: 12px; }

body.pro-form .pro-form-aside { padding: 26px; background: #fbefe6; border: 1px solid #f0dccb; border-radius: 22px; }
body.pro-form .pro-form-aside h2 { margin-bottom: 14px; font-size: 18px; font-weight: 750; }
body.pro-form .pro-form-aside ul { display: grid; gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; }
body.pro-form .pro-form-aside li { display: flex; gap: 10px; color: #5d5148; font-size: 15px; line-height: 1.45; }
body.pro-form .pro-form-aside li span { flex: 0 0 auto; color: #b86517; font-weight: 800; }
body.pro-form .pro-form-aside a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: #9a4f0e; font-weight: 750; text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 860px) {
  body.pro-form .pro-form-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  body.pro-form .pro-form-page { padding: 20px 16px 48px; }
  body.pro-form .pro-form-steps { gap: 6px; margin-bottom: 18px; }
  body.pro-form .pro-form-steps li { justify-content: center; padding: 10px 6px; }
  body.pro-form .pro-form-steps li:not(.is-current) > span:last-child { display: none; }
  body.pro-form .pro-form-steps li.is-current { flex: 3 1 0; justify-content: flex-start; }
  body.pro-form .pro-form-card { padding: 24px 20px; border-radius: 20px; }
  body.pro-form .pro-form-row, body.pro-form .pro-form-row-civil { grid-template-columns: minmax(0, 1fr); }
  body.pro-form .pro-form-button { width: 100%; }
}
